add HTML5 doctype to all tests
[dygraphs.git] / tests / no-visibility.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>no-visibility</title>
5 <!--[if IE]>
6 <script type="text/javascript" src="../excanvas.js"></script>
7 <![endif]-->
8 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
9 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
10 <script type="text/javascript" src="../dygraph-canvas.js"></script>
11 <script type="text/javascript" src="../dygraph.js"></script>
12 <script type="text/javascript" src="data.js"></script>
13 </head>
14 <body>
15 <h3>No visible series</h3>
16 <p>This test verifies that a chart will still draw without any JS errors
17 when no series are visible.</p>
18 <div id="div_g" style="width:400px; height:200px;"></div>
19
20 <script type="text/javascript">
21 g = new Dygraph(
22 document.getElementById("div_g"),
23 NoisyData, {
24 rollPeriod: 7,
25 errorBars: true,
26 visibility: [false, false]
27 }
28 );
29 </script>
30
31 </body>
32 </html>