Exporting HtmlChart to PNG Server-Side?

2 posts, 0 answers
  1. Evan
    Evan avatar
    22 posts
    Member since:
    May 2008

    Posted 25 Aug 2015 Link to this post

    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.



  2. Danail Vasilev
    Danail Vasilev avatar
    1476 posts

    Posted 28 Aug 2015 Link to this post

    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.

    Danail Vasilev
    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. DevCraft R3 2016 release webinar banner
Back to Top