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

Generate image from htmlchart without displaying the chart

1 Answer 149 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 04 Mar 2016, 12:01 PM

Hi,

Is there a way to generate a chart image from RadHtmlChart for Asp.Net without displaying the chart and without any client code ?

Regards,

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 09 Mar 2016, 07:34 AM
Hello Christophe,

RadHtmlChart renders entirely on the client-side as SVG with JavaScript, so that it is not possible to generate it without the actual rendering. A possible approach is to use a third party library like Phantom JS which runs a browser on the server-side and thus export the image.

On a side note - the chart can be exported entirely on the client-side once it is rendered. Such an example is available here - http://demos.telerik.com/aspnet-ajax/client-export-manager/applicationscenarios/export-radhtmlchart/defaultcs.aspx?product=htmlchart. The exported file can also be send to the server-side with Web API - http://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/how-to/save-exported-files

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
Christophe
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or