fix some range calculation bugs with error bars, gaps with error bars
[dygraphs.git] / tests / missing-data.html
index 0206852..e6eb648 100644 (file)
     <script type="text/javascript" src="../dygraph.js"></script>
   </head>
   <body>
+    <table>
+    <tr><td valign=top>
     <div id="graph"></div>
     <div id="graph2"></div>
+    </td><td valign=top>
     <div id="graph3"></div>
+    </td></tr>
+    </table>
 
     <script type="text/javascript">
     new Dygraph(
       ],
       { labels: ["Date","GapSeries1","GapSeries2"] }
     );
+
+    new Dygraph(
+      document.getElementById("graph3"),
+      [
+        [1, [10, 2], [20, 3]],
+        [2, [12, 2], [22, 3]],
+        [3, [ 8, 2], [25, 3]],
+        [4, [null, 2], [18, 3]],
+        [5, [11, 2], [20, 3]],
+        [6, [ 9, 2], [22, 3]],
+        [7, [10, 2], [23, 3]],
+      ],
+      {
+        errorBars: true,
+        labels: [ "X", "Series1", "Series2" ]
+      }
+    );
     </script>
   </body>
 </html>