Merge pull request #844 from ka7/feature/spelling
[dygraphs.git] / tests / no-visibility.html
CommitLineData
54425b14 1<!DOCTYPE html>
1eb2feb3
DV
2<html>
3 <head>
fd6b8dad 4 <link rel="stylesheet" href="../dist/dygraph.css">
1eb2feb3 5 <title>no-visibility</title>
fbd6834a 6 <script type="text/javascript" src="../dist/dygraph.js"></script>
7e5ddc94 7
1eb2feb3
DV
8 <script type="text/javascript" src="data.js"></script>
9 </head>
10 <body>
11 <h3>No visible series</h3>
12 <p>This test verifies that a chart will still draw without any JS errors
13 when no series are visible.</p>
14 <div id="div_g" style="width:400px; height:200px;"></div>
2cf4e667
AV
15 <p>This graph's specified value range should be respected.</p>
16 <div id="div_g2" style="width:400px; height:200px;"></div>
1eb2feb3
DV
17
18 <script type="text/javascript">
19 g = new Dygraph(
20 document.getElementById("div_g"),
21 NoisyData, {
22 rollPeriod: 7,
23 errorBars: true,
24 visibility: [false, false]
25 }
26 );
bc7f1c97 27 g2 = new Dygraph(
2cf4e667
AV
28 document.getElementById("div_g2"),
29 NoisyData, {
30 rollPeriod: 7,
31 errorBars: true,
32 visibility: [false, false],
33 valueRange: [100, 200]
34 }
35 );
1eb2feb3
DV
36 </script>
37
38 </body>
39</html>