Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
4440f6c8 DV |
2 | <html> |
3 | <head> | |
10494b48 | 4 | <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> |
4440f6c8 DV |
5 | <title>numeric gviz</title> |
6 | <!--[if IE]> | |
a2b2c3a1 | 7 | <script type="text/javascript" src="../excanvas.js"></script> |
4440f6c8 | 8 | <![endif]--> |
d37dca40 DV |
9 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> |
10 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> | |
4440f6c8 DV |
11 | <script type="text/javascript" src="../dygraph-canvas.js"></script> |
12 | <script type="text/javascript" src="../dygraph.js"></script> | |
13 | ||
14 | <script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
15 | ||
16 | <script type="text/javascript"> | |
17 | google.load("visualization", "1", {"packages":[ "columnchart"]}); | |
18 | google.setOnLoadCallback(drawchart); | |
19 | ||
20 | function drawchart() { | |
21 | var tableString = | |
22 | "{cols:[{id:'point',label:'n',type:'number',pattern:''}," + | |
23 | "{id:'0',label:'0',type:'number',pattern:''}," + | |
24 | "{id:'stddev',label:'stddev',type:'number',pattern:''}]," + | |
25 | "rows:[{c:[{v:0.0},{v:41.97},{v:17.86}]},{c:[{v:1.0},{v:11.71},{v:17.86}]},{c:[{v:2.0},{v:43.26},{v:17.86}]}]}"; | |
26 | data = new google.visualization.DataTable(eval('(' + tableString + ')')); | |
27 | chart = new Dygraph.GVizChart(document.getElementById( | |
28 | "graph")); | |
29 | chart.draw(data, {errorBars: true, showRoller: true, includeZero: true }); | |
30 | } | |
31 | </script> | |
32 | </head> | |
33 | <body> | |
34 | <p>This tests that dygraphs can display gviz DataTable's with a numeric | |
35 | x-axis.</p> | |
36 | <div id="graph" style="width: 800px; height: 400px;"></div> | |
37 | </body> | |
38 | </html> |