Set this for drawCallback
[dygraphs.git] / tests / custom-bars.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>custom bars</title>
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
9 <script type="text/javascript" src="../dygraph-dev.js"></script>
10
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <p>Top and bottom of the bars stay mostly fixed while the middle varies.</p>
15 <div id="graph"></div>
16
17 <script type="text/javascript">
18 var g = new Dygraph(document.getElementById("graph"),
19 [
20 [1, [10, 10, 100]],
21 [2, [15, 20, 110]],
22 [3, [10, 30, 100]],
23 [4, [15, 40, 110]],
24 [5, [10, 120, 100]],
25 [6, [15, 50, 110]],
26 [7, [10, 70, 100]],
27 [8, [15, 90, 110]],
28 [9, [10, 50, 100]]
29 ], {
30 customBars: true,
31 errorBars: true,
32 labels: ['X', 'Y']
33 }
34 );
35 </script>
36 </body>
37 </html>