Merge branch 'master' of https://github.com/kberg/dygraphs
[dygraphs.git] / tests / custom-bars.html
... / ...
CommitLineData
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="../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 <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 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 }
33 );
34 </script>
35 </body>
36</html>