Skip to content

Instantly share code, notes, and snippets.

@pligor
pligor / index.html
Created November 20, 2012 14:04 — forked from battlehorse/index.html
Demo script to convert Google Chart Tools charts into PNG images.
<html>
<head>
<script src="javascripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script>
<script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script>
<script>
function getImgData(chartContainer) {
var grandchild = $(chartContainer).children(":first").children(":first");
var chartArea = grandchild[0];