score:-2

Accepted answer
  1. open a web browser on the server.

  2. point the web browser at a pre-made page that loads highcharts and renders your chart.

  3. grab the output of the browser.

  4. send that to a client.

which of those steps seems confusing?

note that this will be significantly slower than just using matplotlib, because you need to start up a full web browser just to render a graph. i had a quick look at the highcharts page you linked and i think you could probably reproduce that in matplotlib.

score:2

i had similar requirements and couldn't find an existing solution so i created a little proof-of-concept solution here.

this implementation works by having the python process create a node subprocess that uses the highchart-export-server node module which in turn spawns a phantomjs instance to render the chart. a few russian dolls involved there, but it does the job.


Related Query

More Query from same tag