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