dygraphs
Version:
dygraphs is a fast, flexible open source JavaScript charting library.
39 lines (36 loc) • 1.28 kB
HTML
<html>
<head>
<meta charset="UTF-8">
<title>custom bars</title>
<link rel="stylesheet" type="text/css" href="../dist/dygraph.css" />
<link rel="stylesheet" type="text/css" href="../common/vextlnk.css" />
<script type="text/javascript" src="../dist/dygraph.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"><!--//--><![CDATA[//><!--
Dygraph.onDOMready(function onDOMready() {
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,
labels: ['X', 'Y']
}
);
});
//--><!]]></script>
</body>
</html>