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>
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>
17 <p>All negatives (x-axis on top):
</p>
18 <div id=
"g1" style=
"width:600px; height:200px;"></div>
20 <p>Mixed (x-axis in middle):
</p>
21 <div id=
"g2" style=
"width:600px; height:200px;"></div>
23 <p>All positives (x-axis on bottom):
</p>
24 <div id=
"g3" style=
"width:600px; height:200px;"></div>
26 <script type=
"text/javascript">
30 for (var i =
0; i <
100; i++) {
31 negs.push([i, -
210 + i, -
110 - i]);
32 mixed.push([i, -
50 + i,
50 - i]);
33 pos.push([i,
1000 +
2 * i,
1100 + i]);
37 document.getElementById(
"g1"),
38 negs, { labels: [ 'x', 'y1', 'y2' ] }
42 document.getElementById(
"g2"),
43 mixed, { labels: [ 'x', 'y1', 'y2' ] }
47 document.getElementById(
"g3"),
48 pos, { labels: [ 'x', 'y1', 'y2' ] }