Created
July 15, 2010 20:44
-
-
Save griggheo/477508 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEMPL = """ | |
<html> | |
<head> | |
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1", {packages:["corechart"]}); | |
google.setOnLoadCallback(drawChart); | |
function drawChart() { | |
var data = new google.visualization.DataTable(%(json)s,0.6); | |
var chart = new google.visualization.AreaChart(document.getElementById('chart_div')); | |
chart.draw(data, {width: 1200, height: 700, title: '%(title)s', | |
hAxis: {title: '5-Minute Intervals', titleColor:'#FF0000'} | |
}); | |
} | |
</script> | |
</head> | |
<body> | |
<div id="chart_div"></div> | |
</body> | |
</html> | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment