add HTML5 doctype to all tests
[dygraphs.git] / tests / custom-bars.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>custom bars</title>
5 <!--[if IE]>
6 <script type="text/javascript" src="../excanvas.js"></script>
7 <![endif]-->
8 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
9 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
10 <script type="text/javascript" src="../dygraph-canvas.js"></script>
11 <script type="text/javascript" src="../dygraph.js"></script>
12 <script type="text/javascript" src="data.js"></script>
13 </head>
14 <body>
15 <p>Top and bottom of the bars stay mostly fixed while the middle varies.</p>
16 <div id="graph"></div>
17
18 <script type="text/javascript">
19 new Dygraph(document.getElementById("graph"),
20 [
21 [1, [10, 10, 100]],
22 [2, [15, 20, 110]],
23 [3, [10, 30, 100]],
24 [4, [15, 40, 110]],
25 [5, [10, 120, 100]],
26 [6, [15, 50, 110]],
27 [7, [10, 70, 100]],
28 [8, [15, 90, 110]],
29 [9, [10, 50, 100]]
30 ], {
31 customBars: true,
32 errorBars: true
33 }
34 );
35 </script>
36 </body>
37 </html>