| 1 | Gallery.register( |
| 2 | 'no-range', |
| 3 | { |
| 4 | name: 'No Range', |
| 5 | setup: function(parent) { |
| 6 | parent.innerHTML = |
| 7 | "<p>Line should be visible in the middle of the chart:</p>" + |
| 8 | "<div id='blah'></div>" + |
| 9 | |
| 10 | "<p>Line should be visible ~90% up the chart:</p>" + |
| 11 | "<div id='blah2'></div>"; |
| 12 | }, |
| 13 | run: function() { |
| 14 | var g1 = new Dygraph(document.getElementById("blah"), |
| 15 | "X,Y\n10,12345\n11,12345\n", |
| 16 | { width: 640, height: 480 }); |
| 17 | |
| 18 | var g2 = new Dygraph(document.getElementById("blah2"), |
| 19 | "date,10M\n" + |
| 20 | "20021229,10000000.000000\n" + |
| 21 | "20030105,10000000.000000\n" + |
| 22 | "20030112,10000000.000000\n" + |
| 23 | "20030119,10000000.000000\n" + |
| 24 | "20030126,10000000.000000\n" + |
| 25 | "20030202,10000000.000000\n" + |
| 26 | "20030209,10000000.000000\n" + |
| 27 | "20030216,10000000.000000\n", |
| 28 | { width: 640, height: 480, includeZero: true, labelsKMB: true }); |
| 29 | } |
| 30 | }); |