e05a40c9322cc7b43e359f856d3a67dfb579e8f7
[dygraphs.git] / tests / no-range.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="../css/dygraph.css">
5 <title>no range</title>
6 <!--
7 For production (minified) code, use:
8 <script type="text/javascript" src="dygraph-combined.js"></script>
9 -->
10 <script type="text/javascript" src="../dist/dygraph.js"></script>
11
12 </head>
13 <body>
14 <p>Line should be visible in the middle of the chart:</p>
15 <div id="blah"></div>
16
17 <p>Line should be visible ~90% up the chart:</p>
18 <div id="blah2"></div>
19
20 <script type="text/javascript">
21 var g1 = new Dygraph(document.getElementById("blah"),
22 "X,Y\n10,12345\n11,12345\n",
23 { width: 640, height: 480 });
24
25 var g2 = new Dygraph(document.getElementById("blah2"),
26 "date,10M\n" +
27 "20021229,10000000.000000\n" +
28 "20030105,10000000.000000\n" +
29 "20030112,10000000.000000\n" +
30 "20030119,10000000.000000\n" +
31 "20030126,10000000.000000\n" +
32 "20030202,10000000.000000\n" +
33 "20030209,10000000.000000\n" +
34 "20030216,10000000.000000\n",
35 { width: 640, height: 480, includeZero: true, labelsKMB: true });
36 </script>
37 </body>
38 </html>