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