3 <title>numeric gviz
</title>
5 <script type=
"text/javascript" src=
"excanvas.js"></script>
7 <script type=
"text/javascript" src=
"../strftime/strftime-min.js"></script>
8 <script type=
"text/javascript" src=
"../rgbcolor/rgbcolor.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
10 <script type=
"text/javascript" src=
"../dygraph.js"></script>
12 <script type=
"text/javascript" src=
"http://www.google.com/jsapi"></script>
14 <script type=
"text/javascript">
15 google.load(
"visualization",
"1", {
"packages":[
"columnchart"]});
16 google.setOnLoadCallback(drawchart);
18 function drawchart() {
20 "{cols:[{id:'point',label:'n',type:'number',pattern:''}," +
21 "{id:'0',label:'0',type:'number',pattern:''}," +
22 "{id:'stddev',label:'stddev',type:'number',pattern:''}]," +
23 "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}]}]}";
24 data = new google.visualization.DataTable(eval('(' + tableString + ')'));
25 chart = new Dygraph.GVizChart(document.getElementById(
27 chart.draw(data, {errorBars: true, showRoller: true, includeZero: true });
32 <p>This tests that dygraphs can display gviz DataTable's with a numeric
34 <div id=
"graph" style=
"width: 800px; height: 400px;"></div>