Useful JSFiddle Templates

Name Link
AngularJs http://jsfiddle.net/1fgf5yjv/
Bootstrap http://jsfiddle.net/xn83o1ng/
ReactJs https://jsfiddle.net/6p83Lfp1/
Google Charts http://jsfiddle.net/rvj54w7c/
Google Maps http://jsfiddle.net/dda4ktoa/
Advertisements

Google Chart to image

(by AXDS)

Example: http://jsfiddle.net/asgallant/R8A8P/

Once a chart has been initialised, an image can be created using an inbuild Google Charts function:

chart.getImageURI();

This is called by listening to the ready state of the chart:

 var chart = new google.visualization.ColumnChart(document.getElementById('chartLocation'))
google.visualization.events.addListener(chart, 'ready', function () {
document.getElementById('chartImgLocation').src = chart.getImageURI();
});;