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