dcos-dygraphs
Version:
dygraphs is a fast, flexible open source JavaScript charting library.
43 lines (39 loc) • 1.23 kB
HTML
<html>
<head>
<title>no-visibility</title>
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
-->
<script type="text/javascript" src="../dist/dygraph.js"></script>
<script type="text/javascript" src="data.js"></script>
</head>
<body>
<h3>No visible series</h3>
<p>This test verifies that a chart will still draw without any JS errors
when no series are visible.</p>
<div id="div_g" style="width:400px; height:200px;"></div>
<p>This graph's specified value range should be respected.</p>
<div id="div_g2" style="width:400px; height:200px;"></div>
<script type="text/javascript">
g = new Dygraph(
document.getElementById("div_g"),
NoisyData, {
rollPeriod: 7,
errorBars: true,
visibility: [false, false]
}
);
g2 = new Dygraph(
document.getElementById("div_g2"),
NoisyData, {
rollPeriod: 7,
errorBars: true,
visibility: [false, false],
valueRange: [100, 200]
}
);
</script>
</body>
</html>