This is a migrated thread and some comments may be shown as answers.

Exporting HtmlChart to PNG Server-Side?

1 Answer 203 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Evan
Top achievements
Rank 1
Evan asked on 25 Aug 2015, 06:28 PM

Hi all,

Is there a way to export the HtmlChart as an image (stream) on the server-side? I'm trying to generate graphics to add to PDF's completely server-side. All I have seen is client-side exportImage.

Regards,

Evan

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 28 Aug 2015, 08:21 AM
Hello Evan,

The chart renders entire on the client-side, so that in order to export it you should initially render it in the browser. That being said I can suggest the following:
    - Export the chart on the client-side and then send the image to the server.
    - Render the chart on the client-side and then send the rendered image to the server where you can use a third party software to export it. Such an example with the free inkScape software is available here - http://www.telerik.com/support/code-library/exporting-radhtmlchart-to-png-and-pdf. You can also find useful the Phantom JS library that lets you render a browser on the server and export the page.

Regards,
Danail Vasilev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart (HTML5)
Asked by
Evan
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or