Use CSS for tests, gallery and docs
[dygraphs.git] / tests / no-visibility.html
CommitLineData
54425b14 1<!DOCTYPE html>
1eb2feb3
DV
2<html>
3 <head>
93a5bb4c 4 <link rel="stylesheet" href="../css/dygraph.css">
1eb2feb3 5 <title>no-visibility</title>
7e5ddc94
DV
6 <!--
7 For production (minified) code, use:
8 <script type="text/javascript" src="dygraph-combined.js"></script>
9 -->
fbd6834a 10 <script type="text/javascript" src="../dist/dygraph.js"></script>
7e5ddc94 11
1eb2feb3
DV
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>
2cf4e667
AV
19 <p>This graph's specified value range should be respected.</p>
20 <div id="div_g2" style="width:400px; height:200px;"></div>
1eb2feb3
DV
21
22 <script type="text/javascript">
23 g = new Dygraph(
24 document.getElementById("div_g"),
25 NoisyData, {
26 rollPeriod: 7,
27 errorBars: true,
28 visibility: [false, false]
29 }
30 );
bc7f1c97 31 g2 = new Dygraph(
2cf4e667
AV
32 document.getElementById("div_g2"),
33 NoisyData, {
34 rollPeriod: 7,
35 errorBars: true,
36 visibility: [false, false],
37 valueRange: [100, 200]
38 }
39 );
1eb2feb3
DV
40 </script>
41
42 </body>
43</html>