Home forums Feature Requests & Feedback Export charts as PNG on server

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28856

    Hi,

    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

    Ramsy

    #28864

    Ramsy,

    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.

    ___________
    Indranil Deo
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.