3 <title>numeric axis
</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>
11 <script type=
"text/javascript" src=
"http://www.google.com/jsapi"></script>
14 <p>CSV data source:
</p>
15 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
17 <p>GViz data source:
</p>
18 <div id=
"gviz" style=
"width:600px; height:300px;"></div>
20 <script type=
"text/javascript">
22 document.getElementById(
"div_g"),
24 var ret =
"X,Y1,Y2\n";
25 for (var i =
0; i <
100; i++) {
26 ret += i +
"," + i +
"," + (i * (
100-i) *
100/(
50*
50)) +
"\n";
33 google.load('visualization', '
1', {packages: ['linechart']});
35 data = new google.visualization.DataTable();
36 data.addColumn('number', 'X');
37 data.addColumn('number', 'Y1');
38 data.addColumn('number', 'Y2');
40 for (var i =
0; i <
100; i++) {
41 data.setCell(i,
0, i);
42 data.setCell(i,
1, i);
43 data.setCell(i,
2, i * (
100-i) *
100/(
50*
50));
46 new Dygraph.GVizChart(
47 document.getElementById('gviz')).draw(data,
52 google.setOnLoadCallback(addGViz);