Bump versions and add release notes
[dygraphs.git] / tests / no-visibility.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="../dist/dygraph.css">
5 <title>no-visibility</title>
6 <script type="text/javascript" src="../dist/dygraph.js"></script>
7
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>
15 <p>This graph's specified value range should be respected.</p>
16 <div id="div_g2" style="width:400px; height:200px;"></div>
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 );
27 g2 = new Dygraph(
28 document.getElementById("div_g2"),
29 NoisyData, {
30 rollPeriod: 7,
31 errorBars: true,
32 visibility: [false, false],
33 valueRange: [100, 200]
34 }
35 );
36 </script>
37
38 </body>
39 </html>