View Full Version : Export chart to PNG

14 Dec 2010, 12:05 AM
Hi everybody,

I'm new in ext js and i'd like to export my chart(Pie chart and column chart) in picture format (png or jpg).
I've see with a right click on chart we can export it. So i think i can use this function to do the export in the code. But how call this function or what is name? If you have any other idea, i'm happy to listen it :).

Thank you

14 Dec 2010, 1:02 AM
Current chart implementation in Ext 3 uses Flash, but if you wait for Ext 4 this should be solvable by using Canvas as the underlying drawing mechanism. Here's more discussion about the topic: http://stackoverflow.com/questions/2544260/how-to-save-html5-canvas

14 Dec 2010, 1:44 AM
Thanks for your quick reply