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 41 42
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>no-visibility</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>
<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"><!--//--><![CDATA[//><!--
Dygraph.onDOMready(function onDOMready() {
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>
|