Home › forums › Feature Requests & Feedback › Export charts as PNG on server
I’m currently trying out Canvasjs on Centos O/S. For our solution we are looking at generating a number charts, saving them as png and and then building a report in HTML, then creating a PDF report from the HTML file (URL).
My question is:
How can I export the rendered charts as PNG on the server, without intervention e.g. headless in the background from a PHP script?
Thanks in advance
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.
You must be logged in to reply to this topic.