Add test for value range being respected when no lines are visible.
authorAdam Vartanian <flooey@gmail.com>
Tue, 5 Apr 2011 16:39:30 +0000 (12:39 -0400)
committerAdam Vartanian <flooey@gmail.com>
Tue, 5 Apr 2011 16:39:30 +0000 (12:39 -0400)
tests/no-visibility.html

index 6127fd4..2537c82 100644 (file)
@@ -17,6 +17,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]
             }
           );
+      g = new Dygraph(
+            document.getElementById("div_g2"),
+            NoisyData, {
+              rollPeriod: 7,
+              errorBars: true,
+              visibility: [false, false],
+              valueRange: [100, 200]
+            }
+          );
     </script>
 
   </body>