add back Dygraph.floatFormat
[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 <p>This graph's specified value range should be respected.</p>
21 <div id="div_g2" style="width:400px; height:200px;"></div>
22
23 <script type="text/javascript">
24 g = new Dygraph(
25 document.getElementById("div_g"),
26 NoisyData, {
27 rollPeriod: 7,
28 errorBars: true,
29 visibility: [false, false]
30 }
31 );
32 g2 = new Dygraph(
33 document.getElementById("div_g2"),
34 NoisyData, {
35 rollPeriod: 7,
36 errorBars: true,
37 visibility: [false, false],
38 valueRange: [100, 200]
39 }
40 );
41 </script>
42
43 </body>
44 </html>