Change no-series-defined behavior so that it computes the
[dygraphs.git] / tests / no-visibility.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>no-visibility</title>
6 <!--[if IE]>
7 <script type="text/javascript" src="../excanvas.js"></script>
8 <![endif]-->
9 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
10 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
11 <script type="text/javascript" src="../dygraph-canvas.js"></script>
12 <script type="text/javascript" src="../dygraph.js"></script>
13 <script type="text/javascript" src="data.js"></script>
14 </head>
15 <body>
16 <h3>No visible series</h3>
17 <p>This test verifies that a chart will still draw without any JS errors
18 when no series are visible.</p>
19 <div id="div_g" 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 </script>
31
32 </body>
33 </html>