|
lkjk
Nov 20, 2013 0:58:17 GMT -6
Post by ``the sorting hat on Nov 20, 2013 0:58:17 GMT -6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Google Visualization API Sample</title> <script type="text/javascript" src="//www.google.com/jsapi"></script> <script type="text/javascript"> google.load('visualization', '1', {packages: ['annotatedtimeline']}); function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Year', 'Deforestation (sq mi)', 'Positive/Negative Change'], ['2007', 4498, true], ['2008', 4984, false], ['2009', 2882, true], ['2010', 2702, true], ['2011', 2373, true], ['2012', 1765, true] ]); // Create and draw the visualization. visualization = new google.visualization.Table(document.getElementById('table')); visualization.draw(data, null); } google.setOnLoadCallback(drawVisualization); </script> </head> <body style="font-family: Arial;border: 0 none;"> <div id="visualization" style="width: 800px; height: 400px;"></div> </body> </html>
|
|