4 <link rel=
"stylesheet" href=
"../css/dygraph.css">
5 <title>numeric axis
</title>
7 For production (minified) code, use:
8 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
10 <script type=
"text/javascript" src=
"../dist/dygraph.js"></script>
12 <script type=
"text/javascript" src=
"http://www.google.com/jsapi"></script>
15 <p>CSV data source:
</p>
16 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
18 <p>GViz data source:
</p>
19 <div id=
"gviz" style=
"width:600px; height:300px;"></div>
21 <script type=
"text/javascript">
23 document.getElementById(
"div_g"),
25 var ret =
"X,Y1,Y2\n";
26 for (var i =
0; i <
100; i++) {
27 ret += i +
"," + i +
"," + (i * (
100-i) *
100/(
50*
50)) +
"\n";
34 google.load('visualization', '
1', {packages: ['linechart']});
36 data = new google.visualization.DataTable();
37 data.addColumn('number', 'X');
38 data.addColumn('number', 'Y1');
39 data.addColumn('number', 'Y2');
41 for (var i =
0; i <
100; i++) {
42 data.setCell(i,
0, i);
43 data.setCell(i,
1, i);
44 data.setCell(i,
2, i * (
100-i) *
100/(
50*
50));
47 new Dygraph.GVizChart(
48 document.getElementById('gviz')).draw(data,
53 google.setOnLoadCallback(addGViz);