Fix bug 428, add test which catches exception. What an annoying little bug.
[dygraphs.git] / docs / data.html
index 193820a..135fe16 100644 (file)
@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <html>
   <head>
+    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
     <title>dygraphs input types</title>
     <style type="text/css">
       code { white-space: pre; border: 1px dashed black; display: block; }
       <i>customBars</i>: [x, [low1, val1, high1], [low2, val2, high2], ...]
     </code>
 
-    <p>To specify missing data, set the value to null. You may not set a value
-    inside an array to null. Use null instead of the entire array.</p>
+    <p>To specify missing data, set the value to null or NaN. You may not set a value
+    inside an array to null or NaN. Use null or NaN instead of the entire array. 
+    The only difference between the two is when the option
+    <a href="options.html#conectSeparatedPoints">connectSeparatedPoints</a>
+    true. In that case, the gaps created by nulls are filled in, and gaps
+    created by NaNs are preserved.
+    </p>
 
     <a name="function"><h3>Functions</h3>
 
       function() { return x; }
     </code>
 
+    Functions can return strings, arrays, data tables, URLs, or any other data type.
+
     <a name="datatable"><h3>DataTable</h3>
     <p>You can also specify a Google Visualization Library <a
       href="http://code.google.com/apis/visualization/documentation/reference.html#DataTable">DataTable</a>
     - walkthrough of using std. dev. in a spreadsheet chart
     </pre>
 
+  <!-- Google Analytics -->
+<script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-769809-2']);
+  _gaq.push(['_trackPageview']);
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+</script>
   </body>
 </html>