Merge pull request #622 from JoesephPaulSmith/master
[dygraphs.git] / tests / custom-bars.html
CommitLineData
54425b14 1<!DOCTYPE html>
285a6bda
DV
2<html>
3 <head>
4 <title>custom bars</title>
7e5ddc94
DV
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
285a6bda
DV
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">
f6fbf9e0 18 var g = new Dygraph(document.getElementById("graph"),
285a6bda
DV
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,
300c5ff0
DV
31 errorBars: true,
32 labels: ['X', 'Y']
285a6bda
DV
33 }
34 );
35 </script>
36 </body>
37</html>