4 <link rel=
"stylesheet" href=
"../dist/dygraph.css">
5 <title>negatives
</title>
6 <script type=
"text/javascript" src=
"../dist/dygraph.js"></script>
10 <p>All negatives (x-axis on top):
</p>
11 <div id=
"g1" style=
"width:600px; height:200px;"></div>
13 <p>Mixed (x-axis in middle):
</p>
14 <div id=
"g2" style=
"width:600px; height:200px;"></div>
16 <p>All positives (x-axis on bottom):
</p>
17 <div id=
"g3" style=
"width:600px; height:200px;"></div>
19 <script type=
"text/javascript">
23 for (var i =
0; i <
100; i++) {
24 negs.push([i, -
210 + i, -
110 - i]);
25 mixed.push([i, -
50 + i,
50 - i]);
26 pos.push([i,
1000 +
2 * i,
1100 + i]);
30 document.getElementById(
"g1"),
31 negs, { labels: [ 'x', 'y1', 'y2' ] }
35 document.getElementById(
"g2"),
36 mixed, { labels: [ 'x', 'y1', 'y2' ] }
40 document.getElementById(
"g3"),
41 pos, { labels: [ 'x', 'y1', 'y2' ] }