PDA

View Full Version : ExtJs Chart & SVG



jarobi
21 Feb 2012, 3:32 AM
Is there any possibility to get a SVG from a ExtJs Chart? Ideas or Workarounds ?


ty
jarobi

mitchellsimoens
21 Feb 2012, 6:57 AM
Ext JS 3 or 4?

jarobi
21 Feb 2012, 7:08 AM
Ext JS 4

mitchellsimoens
21 Feb 2012, 7:18 AM
Moved to Ext JS 4 Q&A forum.

In 4.1.0 there is the undocumented SvgExporter.

jarobi
21 Feb 2012, 8:03 AM
You made my day.....

I want convert ExtJS Charts to JPEG/PNG.......So my idea was to create a svg of the chart(client side) and convert it to a image( server side with apache.balsik).
Chart to SVG --> I dont know how
SVG to JPEG/PNG -- Done

But now i found this(Ext 4.1)---- hope this will work :


chart.save({
* type: 'image/png' /// image/jpeg /// image/svg+xml
* });


Thank You

andress.calderon
21 Feb 2012, 8:41 AM
Hey jarobi,

Could you please tell us where you find information about the chart.save() method??? It is quite interesting!!!


You made my day.....

I want convert ExtJS Charts to JPEG/PNG.......So my idea was to create a svg of the chart(client side) and convert it to a image( server side with apache.balsik).
Chart to SVG --> I dont know how
SVG to JPEG/PNG -- Done

But now i found this(Ext 4.1)---- hope this will work :


chart.save({
* type: 'image/png' /// image/jpeg /// image/svg+xml
* });


Thank You

jarobi
23 Feb 2012, 3:49 AM
\ext-4.1.0-beta-2\src\chart\chart.js

chart.save() ---> Surface.save() ---> SvgExporter/ImageExporter