4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>negatives
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
9 <script type=
"text/javascript" src=
"../strftime/strftime-min.js"></script>
10 <script type=
"text/javascript" src=
"../rgbcolor/rgbcolor.js"></script>
11 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
12 <script type=
"text/javascript" src=
"../dygraph.js"></script>
15 <p>All negatives (x-axis on top):
</p>
16 <div id=
"g1" style=
"width:600px; height:200px;"></div>
18 <p>Mixed (x-axis in middle):
</p>
19 <div id=
"g2" style=
"width:600px; height:200px;"></div>
21 <p>All positives (x-axis on bottom):
</p>
22 <div id=
"g3" style=
"width:600px; height:200px;"></div>
24 <script type=
"text/javascript">
28 for (var i =
0; i <
100; i++) {
29 negs.push([i, -
210 + i, -
110 - i]);
30 mixed.push([i, -
50 + i,
50 - i]);
31 pos.push([i,
1000 +
2 * i,
1100 + i]);
35 document.getElementById(
"g1"),
36 negs, { labels: [ 'x', 'y1', 'y2' ] }
40 document.getElementById(
"g2"),
41 mixed, { labels: [ 'x', 'y1', 'y2' ] }
45 document.getElementById(
"g3"),
46 pos, { labels: [ 'x', 'y1', 'y2' ] }