highchartexport
Convert highchart configuration into an image file using export server of HighCharts, which is http://export.highcharts.com/
Installation
You can use pip command
pip install highchartexport
Example
In terminal
highchartexport --json "{\"chart\":{\"type\":\"area\"},\"series\":[{\"data\":[1,2,3,4,5,6],\"name\":\"areaplot\"}]}" --out area_chart.png
highchartexport --json "{\"chart\":{\"type\":\"area\"},\"series\":[{\"data\":[1,2,3,4,5,6],\"name\":\"areaplot\"}]}" --out area_chart.png --width 2000 --scale 2
Pass highchart json file
- For PNG image file
highchartexport --in hc_config.json --out area_chart.png --width 2000 --scale 2 --type png
- For SVG file
highchartexport --in hc_config.json --out area_chart.svg --width 2000 --scale 2 --type svg
- For SVG file with StockChart
highchartexport --in hc_config.json --out area_chart.svg --chart StockChart --width 2000 --scale 2 --type svg
- For PDF file with Map Chart
highchartexport --in hc_config.json --out area_chart.svg --chart Map --width 2000 --scale 2 --type pdf
Import in your Python program
import highchartexport as hc_export
config = {
"chart": {
"type": 'bubble',
"plotBorderWidth": 1,
"zoomType": 'xy'
},
"title": {
"text": 'Highcharts bubbles save in pdf file'
},
"series": [{
"data": [
[19, 81, 63],
[98, 5, 89],
[51, 50, 73],
],
"marker": {
"fillColor": {
"radialGradient": { "cx": 0.4, "cy": 0.3, "r": 0.7 },
"stops": [
[0, 'rgba(255,255,255,0.5)'],
[1, 'rgba(200, 200, 200, 0.8)']
]
}
}
}]
}
# use default width and scale value
hc_export.save_as_pdf(config=config, filename="bubble.pdf")
# you can pass width and scale value
hc_export.save_as_pdf(config=config, filename="bubble.pdf", width=1000, scale=4)
Metadata
Release files for highchartexport 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| highchartexport-0.0.5.tar.gz | 25.2 kB | Without provenance | Details for highchartexport-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| highchartexport-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for highchartexport-0.0.5-py3-none-any.whl |
Total release size: 42.6 kB
Release files / highchartexport-0.0.5.tar.gz
| Download URL | highchartexport-0.0.5.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b32ff5bf4d204ebd8b2d195e01de004d0c618aa2de156a441f1ddb1e2b410ad
|
|
BLAKE2b-256 checksum How to use checksums |
79fce31ea31e95dd064e7db4bbe695bd9df453ed55247c1dbfde81d57d511ef0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
|
Release files / highchartexport-0.0.5-py3-none-any.whl
| Download URL | highchartexport-0.0.5-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01f6963ecefd89f42692a0d6745c1e2cfc65d19f9ba07a609fb354e21eaba137
|
|
BLAKE2b-256 checksum How to use checksums |
726fa88e9214732b970b95c3e3dbdd7cd0708646c2de472a747ffcdaeb36041e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
|
Security for highchartexport 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.