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