diff --git a/.travis.yml b/.travis.yml index 4559f46..d30c0c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: python python: - - 3.7 + - 3.9 cache: pip: true before_install: diff --git a/README.md b/README.md index 972e4f5..465d9eb 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,9 @@ print(qc.get_url()) You can set the following properties: ### config: dict or str -The actual Chart.js chart configuration. +The actual Chart.js chart configuration. + +If your chart configuration is JSON-compatible, it's usually easiest to pass an object ([example](https://github.com/typpo/quickchart-python/blob/master/examples/simple_example.py)). If your chart configuration contains a Javascript function, you may pass it as a string ([example](https://github.com/typpo/quickchart-python/blob/master/examples/simple_example_with_function.py)) or use `QuickChartFunction` ([example](https://github.com/typpo/quickchart-python/blob/master/examples/using_quickchartfunction.py)). ### width: int Width of the chart image in pixels. Defaults to 500 @@ -121,10 +123,13 @@ The device pixel ratio of the chart. This will multiply the number of pixels by ### version: str The version of Chart.js to use. Acceptable values are documented [here](https://quickchart.io/documentation/#parameters). Usually used to select Chart.js 3+. -### host +### scheme: str +The protocol to use. Defaults to `https`. + +### host: str Override the host of the chart render server. Defaults to quickchart.io. -### key +### key: str Set an API key that will be included with the request. ## Getting URLs
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: