merging addition of range selector secondary gradient color (formerly PR 314) with...
[dygraphs.git] / tests / no-visibility.html
CommitLineData
54425b14 1<!DOCTYPE html>
1eb2feb3
DV
2<html>
3 <head>
4 <title>no-visibility</title>
7e5ddc94
DV
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
1eb2feb3
DV
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>
2cf4e667
AV
18 <p>This graph's specified value range should be respected.</p>
19 <div id="div_g2" style="width:400px; height:200px;"></div>
1eb2feb3
DV
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 );
bc7f1c97 30 g2 = new Dygraph(
2cf4e667
AV
31 document.getElementById("div_g2"),
32 NoisyData, {
33 rollPeriod: 7,
34 errorBars: true,
35 visibility: [false, false],
36 valueRange: [100, 200]
37 }
38 );
1eb2feb3
DV
39 </script>
40
41 </body>
42</html>