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

Export/Email Charts

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 16 Dec 2013, 03:54 PM
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

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 18 Dec 2013, 11:05 AM
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!
Tags
General Discussions
Asked by
Jason
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or