Use CSS for tests, gallery and docs
[dygraphs.git] / tests / no-visibility.html
index 6127fd4..b253433 100644 (file)
@@ -1,15 +1,14 @@
 <!DOCTYPE html>
 <html>
   <head>
-    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
+    <link rel="stylesheet" href="../css/dygraph.css">
     <title>no-visibility</title>
-    <!--[if IE]>
-    <script type="text/javascript" src="../excanvas.js"></script>
-    <![endif]-->
-    <script type="text/javascript" src="../strftime/strftime-min.js"></script>
-    <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
-    <script type="text/javascript" src="../dygraph-canvas.js"></script>
-    <script type="text/javascript" src="../dygraph.js"></script>
+    <!--
+    For production (minified) code, use:
+    <script type="text/javascript" src="dygraph-combined.js"></script>
+    -->
+    <script type="text/javascript" src="../dist/dygraph.js"></script>
+
     <script type="text/javascript" src="data.js"></script>
   </head>
   <body>
@@ -17,6 +16,8 @@
     <p>This test verifies that a chart will still draw without any JS errors
     when no series are visible.</p>
     <div id="div_g" style="width:400px; height:200px;"></div>
+    <p>This graph's specified value range should be respected.</p>
+    <div id="div_g2" style="width:400px; height:200px;"></div>
 
     <script type="text/javascript">
       g = new Dygraph(
               visibility: [false, false]
             }
           );
+      g2 = new Dygraph(
+            document.getElementById("div_g2"),
+            NoisyData, {
+              rollPeriod: 7,
+              errorBars: true,
+              visibility: [false, false],
+              valueRange: [100, 200]
+            }
+          );
     </script>
 
   </body>