PDA

View Full Version : Saving a chart replacing the http://svg.sencha.io service



bvt_surface_fleet
16 Jul 2012, 7:47 AM
Does anyone know where I can get hold of or how I go about creating the same service that is provided by http://svg.sencha.io.
The ability to save charts to png is fantastic but due to security concerns I can not use svg.sencha.io.
It says I can change the defaultUrl. I just need to know how to set up the service!

mirws
20 Sep 2012, 6:09 PM
+1, someone who also looking this feature for security reason and for local intranet use that doesn't have internet connection :">

fschaeffer
20 Sep 2012, 9:41 PM
Either install your own Batiq server which renders SVG -> png and override the URL or you could try the approach by using php and imageMagick described here:

http://www.sencha.com/forum/showthread.php?166537-Ext.chart.Chart-save&p=888160&viewfull=1#post888160

Daniil
27 Feb 2014, 10:30 PM
We have created our own endpoint as an alternative of "svg.sencha.io".

The only thing required to use it is this piece of JavaScript code:

Ext.draw.engine.ImageExporter.defaultUrl = "http://svg.ext.net";

More details are here:
forums.ext.net/showthread.php?28195