Generate image from htmlchart without displaying the chart

2 posts, 0 answers
  1. Christophe
    Christophe avatar
    2 posts
    Member since:
    Mar 2016

    Posted 04 Mar Link to this post

    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,

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 09 Mar Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top