Skip to content

Instantly share code, notes, and snippets.

@matijagrcic
Created April 21, 2014 08:55
Show Gist options
  • Save matijagrcic/11136768 to your computer and use it in GitHub Desktop.
Save matijagrcic/11136768 to your computer and use it in GitHub Desktop.
google.visualization.events.addListener(chart, 'ready', function () {
chart-container.innerHTML = '<img src="' + chart.getImageURI() + '">';
});
<div id='png'></div>
document.getElementById('png').outerHTML = '<a href="' + chart.getImageURI() + '">Printable chart</a>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment