Home › forums › Chart Support › server side chart caching
Any way to generate server side charts for caching?
For Example –
Would like to generate and save ‘png’ images on our server to save client generated issues, DB access. …
In order to render chart on the server side you would require a headless browser like PhantomJS. Here is an article which might help.
Please take a look at this sample PhantomJS project, that captures the chart image from web page and saves it to a particular location. Please refer to instructions.txt file for clear understanding.
Thanks! Your product is a GREAT package! We are getting great compliments on the charts!
We implemented phantomjs at –
(click on any pie/bar chart). The bar/pie chart are server sided created PNG images using pahntomjs. Additionally, resultant PNG images on links are also created by phantomjs. e.g. –
Are there other headless browsers that have similar features as phatomjs that have interfaced with canvasJS?
There are many headless browsers available like Chrome Headless Browser, BrowserShot, SlimerJS, etc that you can try out to fit your requirements for saving html as image.
You must be logged in to reply to this topic.