Add sparse sample, rename variable.
[dygraphs.git] / tests / custom-bars.html
CommitLineData
54425b14 1<!DOCTYPE html>
285a6bda
DV
2<html>
3 <head>
10494b48 4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
285a6bda
DV
5 <title>custom bars</title>
6 <!--[if IE]>
a2b2c3a1 7 <script type="text/javascript" src="../excanvas.js"></script>
285a6bda 8 <![endif]-->
7e5ddc94
DV
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
285a6bda
DV
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 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 }
37 );
38 </script>
39 </body>
40</html>