PDA

View Full Version : ExtJs bar chart export as png or jpeg image



raman4984
3 May 2012, 9:36 PM
Hi,

I am trying to find out Export feature for Bar charts to JPEG/PNG... I didn't find this any where in extJs examples section. Please let me know if this feature is available in Extjs charts or not. Please share the examples or URLs on this, if any.

Any thing on this will be much appreciable!!

evant
3 May 2012, 9:41 PM
You can: http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/charts/Area.html

raman4984
3 May 2012, 10:20 PM
yes, we can use that "save Chart" feature. But I was looking for "right click menu" functionality. Please let me know if this feature is also available in ExtJs. Thanks!!

ravindran
7 Oct 2013, 12:06 AM
You can: http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/charts/Area.html

the button provided in the above link , does not seem to save chart/download any image file.
Nor is the chart.save({ type: 'image/png' }); command working in our browser.

Kindly clarify

Gary Schlosberg
7 Oct 2013, 4:57 AM
You might want to try a more up-to-date version of the chart:
docs.sencha.com/extjs/4.2.2/#!/example/direct/direct-tree.html

ravindran
8 Oct 2013, 6:12 PM
No,

I was looking for the save functionality of the chart.
2 days back, the save was just leading to a blank page. Now again it works properly.

could u tell me how to enable it in the intranet.. i.e. to be able to save the chart as an image without actually leading to the SVG server in sencha.

Additionally, I would like to specify the filename for the download. Could you point me to a syntax doc for the same.

Much Obliged.