4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>numeric axis
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
10 For production (minified) code, use:
11 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
13 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
15 <script type=
"text/javascript" src=
"http://www.google.com/jsapi"></script>
18 <p>CSV data source:
</p>
19 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
21 <p>GViz data source:
</p>
22 <div id=
"gviz" style=
"width:600px; height:300px;"></div>
24 <script type=
"text/javascript">
26 document.getElementById(
"div_g"),
28 var ret =
"X,Y1,Y2\n";
29 for (var i =
0; i <
100; i++) {
30 ret += i +
"," + i +
"," + (i * (
100-i) *
100/(
50*
50)) +
"\n";
37 google.load('visualization', '
1', {packages: ['linechart']});
39 data = new google.visualization.DataTable();
40 data.addColumn('number', 'X');
41 data.addColumn('number', 'Y1');
42 data.addColumn('number', 'Y2');
44 for (var i =
0; i <
100; i++) {
45 data.setCell(i,
0, i);
46 data.setCell(i,
1, i);
47 data.setCell(i,
2, i * (
100-i) *
100/(
50*
50));
50 new Dygraph.GVizChart(
51 document.getElementById('gviz')).draw(data,
56 google.setOnLoadCallback(addGViz);