Commit | Line | Data |
---|---|---|
d1bce5a0 DV |
1 | <html> |
2 | <head> | |
3 | <title>Daylight Savings</title> | |
4 | <!--[if IE]> | |
5 | <script type="text/javascript" src="../excanvas.js"></script> | |
6 | <![endif]--> | |
7 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> | |
8 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> | |
9 | <script type="text/javascript" src="../dygraph-canvas.js"></script> | |
10 | <script type="text/javascript" src="../dygraph.js"></script> | |
11 | </head> | |
12 | <body> | |
13 | <h2>DST</h2> | |
14 | <p>This tests that tick marks don't break when the axis crosses into | |
15 | daylight savings time.</p> | |
16 | ||
17 | <div id="demodiv"></div> | |
18 | ||
35a3b119 DV |
19 | <p>The tick marks should all be on day boundaries or nice hours (6, 12, 18), |
20 | rather than on odd time boundaries like 5, 11, 17 and 23.</p> | |
21 | ||
d1bce5a0 DV |
22 | <script type="text/javascript"> |
23 | g = new Dygraph( | |
24 | document.getElementById("demodiv"), | |
25 | "Date/Time,Purchases\n" + | |
26 | "2010-11-05 00:00:00,167082\n" + | |
27 | "2010-11-06 00:00:00,168571\n" + | |
28 | "2010-11-07 00:00:00,177796\n" + | |
29 | "2010-11-08 00:00:00,165587\n" + | |
35a3b119 DV |
30 | "2010-11-09 00:00:00,164380\n", |
31 | { width: 1024 } | |
d1bce5a0 DV |
32 | ); |
33 | </script> | |
34 | </body> | |
35 | </html> |