I'm not sure how you generate your HTMLor what is in it. A technique that I know works is to convert the chart to a (say) png file and then from that you can construct an <img> tag with the binary data which is then incorporated into the template. A variety on this is to save the png in a public directory on the server and put its url into the image tag. Maybe you are doing something like this.

I can imagine that this would be quicker to transfer to the client and also quicker to render in the browser than the JSON version but, to be honest, without actually trying it, that's just a guess.

Technology, data science and programming

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alan Jones

Alan Jones

Technology, data science and programming

More from Medium

Open letter to all festive spendthrift; The 100 days of January

The Model of Decentralization

December, The Friday of Months

Happiness, An Interesting Conundrum