▲ | bArray 10 days ago | |||||||
I would love it if was possible to download the rendered chart, ideally headless. In peak traffic I would prefer to switch to a pre-rendered version, have the pre-rendered version available encase of an error (i.e. data retrieval), or for users not using JS. After the most minimal Google-foo, I see echarts-python [1] which has not been updated in 9 years. pyecharts [2] is looking pretty well maintained though. Years ago I tried my hand at writing a simple bar/line plotting filter for Pandoc that embeds itself into documents via an SVG in a URI [3]. If HN is permitting, you can past links like so [4]. I think writing a stand-alone tool to display the data you are interested in is a good idea for anybody. [1] https://github.com/yufeiminds/echarts-python [2] https://github.com/pyecharts/pyecharts/blob/master/README.en... [3] https://gitlab.com/danbarry16/pandoc-highlight-filter/-/blob... [4] (removed link as it was too long for the comments section) | ||||||||
▲ | onychomys 10 days ago | parent [-] | |||||||
You can easily download a rendered chart by using the chart's getDataURL() function. Then just create a new element in your document and set that element's href to the return from getDataURL() and bob's your uncle. | ||||||||
|