Export images using canvg
With very few codeline changes in export.js you could convert the svg into a canvas using http://code.google.com/p/canvg/
Then send the canvas.toDataURL to the server and let it reply a base64_decode of it, or alternatively use Downloadify to eliminate any server interaction altogether.
This way highcharts doesn't require any conversion library like batik and can be used everywhere (without internet access for export.highcharts.com)
Your Highcharts library rocks btw!
-
@grtvr The link is dead... Do we know why? Also affects http://www.highcharts.com/docs/export-module/export-module-overview.
-
gert vaartjes commented
Results of a friday's experiment: http://jsfiddle.net/highcharts/PDnmQ/
-
Ishank commented
I am not able to use canvg in PhoneGap.
Is it possible to use canvg in a PhoneGap project? -
Tyron Madlener commented
Yes but exporting.src.js offers a very convenient interface for exporting as well as printing support.
-
You don't need to change anything in exporting.src.js to use this. Just make your own method that runs chart.getSVG() to retrieve the SVG, and prints it to a canvas using canvg.