It is very good; I do this using SVG for the image converter from Highcharts. You just find the svg code on the page and the POST for the large chart export server along with a type parameter (like image / jpeg), width and file name to save it as.
The only drawback: IE does not transmit SVG, but VML for Google visualization. There is no solution yet, but it seems that Highcharts also has difficulties converting IE and VML to SVG. So I'm out of luck, I'm afraid.
<form method="post" action="http://export.highcharts.com/" id="imageGetForm"> <input type="hidden" name="filename" value="savedFromGoogleVisualization" /> <input type="hidden" name="type" id="imageGetFormTYPE" value="" /> <input type="hidden" name="width" value="900" /> <input type="hidden" name="svg" value="" id="imageGetFormSVG" /> </form>
and run the following script:
var svg=document.getElementById('chart_div').getElementsByTagName('svg')[0].parentNode.innerHTML; $('#imageGetFormTYPE').val('image/jpeg');//eg image/jpeg application/pdf etc $('#imageGetFormSVG').val(svg); $('#imageGetForm').submit();
A working example is here: http://jsfiddle.net/P6XXM/
source share