You must be logged in to post your query.
Home › Forums › Chart Support › server side chart caching
Any way to generate server side charts for caching?
For Example – https://www.bankdeposits.com/branches-172475
Would like to generate and save ‘png’ images on our server to save client generated issues, DB access. …
Thanks!
Jim
Jim,
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.
— Vishwas R Team CanvasJS
Vishwas,
Thanks! Your product is a GREAT package! We are getting great compliments on the charts!
Be safe!
We implemented phantomjs at –
https://www.bankdeposits.com/zipreport-NJ
(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. –
https://www.bankdeposits.com/zipsummary-07095
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. Login/Register