Merge pull request #462 from danvk/fast-fill
[dygraphs.git] / tests / no-visibility.html
... / ...
CommitLineData
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 <!--
10 For production (minified) code, use:
11 <script type="text/javascript" src="dygraph-combined.js"></script>
12 -->
13 <script type="text/javascript" src="../dygraph-dev.js"></script>
14
15 <script type="text/javascript" src="data.js"></script>
16 </head>
17 <body>
18 <h3>No visible series</h3>
19 <p>This test verifies that a chart will still draw without any JS errors
20 when no series are visible.</p>
21 <div id="div_g" style="width:400px; height:200px;"></div>
22 <p>This graph's specified value range should be respected.</p>
23 <div id="div_g2" style="width:400px; height:200px;"></div>
24
25 <script type="text/javascript">
26 g = new Dygraph(
27 document.getElementById("div_g"),
28 NoisyData, {
29 rollPeriod: 7,
30 errorBars: true,
31 visibility: [false, false]
32 }
33 );
34 g2 = new Dygraph(
35 document.getElementById("div_g2"),
36 NoisyData, {
37 rollPeriod: 7,
38 errorBars: true,
39 visibility: [false, false],
40 valueRange: [100, 200]
41 }
42 );
43 </script>
44
45 </body>
46</html>