Export/Email Charts

2 posts, 0 answers
  1. Jason
    Jason avatar
    44 posts
    Member since:
    Apr 2013

    Posted 16 Dec 2013 Link to this post

    One requirement of the software we are building is that users have the ability to email reports they create.  So we have it set up so that a user can create a report based on certain data parameters and view a chart (using dataviz) of the data.  This all works but we now need the ability for them to export/email this report to themselves.  So my questions are...
    1.) Is there a way I can take a "picture/snapshot" of a chart... Basically end up with a static jpeg or something of the chart.
    2.) Whats the best way to achieve this email/export type of functionality with the Kendo Dataviz stuff?  Any suggestions would be much appreciated.

    Jason
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 18 Dec 2013 Link to this post

    Hello Jason,

    Basically is you are targeting browsers which support Canvas you could use Kendo UI Chart imageDataURL() method to generate a PNG file. In other case you need additional code in order to achieve the desired outcome - I recommend you using the approach suggested in this code library

    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top