- Changes from code review:
[dygraphs.git] / dygraph-options-reference.js
index abdb015..df19c7d 100644 (file)
@@ -748,6 +748,12 @@ Dygraph.OPTIONS_REFERENCE =  // <JSON>
     "type": "string",
     "description": "The range selector mini plot fill color. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\". You can also specify null or \"\" to turn off fill."
   },
+  "xIsEpochDate": {
+    "default": "false",
+    "labels": ["CSV parsing"],
+    "type": "boolean",
+    "description": "When set the X axis is interpreted as Unix epoch date values."
+  },
   "animatedZooms": {
     "default": "false",
     "labels": ["Interactive Elements"],
@@ -770,7 +776,7 @@ Dygraph.OPTIONS_REFERENCE =  // <JSON>
 // Do a quick sanity check on the options reference.
 (function() {
   "use strict";
-  var warn = function(msg) { if (console) console.warn(msg); };
+  var warn = function(msg) { if (window.console) window.console.warn(msg); };
   var flds = ['type', 'default', 'description'];
   var valid_cats = [
    'Annotations',