Set this for drawCallback
[dygraphs.git] / tests / no-visibility.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>no-visibility</title>
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
9 <script type="text/javascript" src="../dygraph-dev.js"></script>
10
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <h3>No visible series</h3>
15 <p>This test verifies that a chart will still draw without any JS errors
16 when no series are visible.</p>
17 <div id="div_g" style="width:400px; height:200px;"></div>
18 <p>This graph's specified value range should be respected.</p>
19 <div id="div_g2" style="width:400px; height:200px;"></div>
20
21 <script type="text/javascript">
22 g = new Dygraph(
23 document.getElementById("div_g"),
24 NoisyData, {
25 rollPeriod: 7,
26 errorBars: true,
27 visibility: [false, false]
28 }
29 );
30 g2 = new Dygraph(
31 document.getElementById("div_g2"),
32 NoisyData, {
33 rollPeriod: 7,
34 errorBars: true,
35 visibility: [false, false],
36 valueRange: [100, 200]
37 }
38 );
39 </script>
40
41 </body>
42 </html>