4 name
: 'Negative values',
5 setup
: function(parent
) {
7 "<p>All negatives (x-axis on top):</p>" +
8 "<div id='g1' style='width:600px; height:200px;'></div>" +
10 "<p>Mixed (x-axis in middle):</p>" +
11 "<div id='g2' style='width:600px; height:200px;'></div>" +
13 "<p>All positives (x-axis on bottom):</p>" +
14 "<div id='g3' style='width:600px; height:200px;'></div>";
20 for (var i
= 0; i
< 100; i
++) {
21 negs
.push([i
, -210 + i
, -110 - i
]);
22 mixed
.push([i
, -50 + i
, 50 - i
]);
23 pos
.push([i
, 1000 + 2 * i
, 1100 + i
]);
27 document
.getElementById("g1"),
28 negs
, { labels
: [ 'x', 'y1', 'y2' ] }
32 document
.getElementById("g2"),
33 mixed
, { labels
: [ 'x', 'y1', 'y2' ] }
37 document
.getElementById("g3"),
38 pos
, { labels
: [ 'x', 'y1', 'y2' ] }