REFACTORING: Spelling corrections and better documentation.
authorDavid Eberlein <david.eberlein@ch.sauter-bc.com>
Thu, 11 Apr 2013 15:38:28 +0000 (17:38 +0200)
committerDavid Eberlein <david.eberlein@ch.sauter-bc.com>
Fri, 12 Apr 2013 07:43:01 +0000 (09:43 +0200)
dygraph-options-reference.js
dygraph.js

index 7d26d5a..bd69bfc 100644 (file)
@@ -650,15 +650,15 @@ Dygraph.OPTIONS_REFERENCE =  // <JSON>
   },
   "drawXGrid": {
     "default": "true",
-    "labels": ["Grid"],
+    "labels": ["Grid","Deprecated"],
     "type": "boolean",
-    "description" : "Depricated: Use the per-axis option drawGrid instead. Whether to display vertical gridlines under the chart."
+    "description" : "Use the per-axis option drawGrid instead. Whether to display vertical gridlines under the chart."
   },
   "drawYGrid": {
     "default": "true",
-    "labels": ["Grid"],
+    "labels": ["Grid","Deprecated"],
     "type": "boolean",
-    "description" : "Depricated: Use the per-axis option drawGrid instead. Whether to display horizontal gridlines under the chart."
+    "description" : "Use the per-axis option drawGrid instead. Whether to display horizontal gridlines under the chart."
   },
   "drawGrid": {
     "default": "true for x and y, false for y2",
@@ -667,10 +667,10 @@ Dygraph.OPTIONS_REFERENCE =  // <JSON>
     "description" : "Whether to display gridlines in the chart. This may be set on a per-axis basis to define the visibility of each axis' grid separately."
   },
   "independentTicks": {
-    "default": "true for x and y, false for y2",
+    "default": "true for y, false for y2",
     "labels": ["Axis display", "Grid"],
     "type": "boolean",
-    "description" : "By default, the y2 axis inherits the tick positions of the primary (y) axis. However, if an axis is specifically marked as having independent ticks, then that is permissible as well. This MUST be set on a per-axis basis to define the position of each axis' grid and labels separately."
+    "description" : "Only valid for y and y2, has no effect on x: This option defines whether the y axes should align their ticks or if they should be independent. Possible combinations: 1.) y=true, y2=false (default): y is the primary axis and the y2 ticks are aligned to the the ones of y. (only 1 grid) 2.) y=false, y2=true: y2 is the primary axis and the y ticks are aligned to the the ones of y2. (only 1 grid) 3.) y=true, y2=true: Both axis are independent and have their own ticks. (2 grids) 4.) y=false, y2=false: Invalid configuration causes an error."
   },
   "drawXAxis": {
     "default": "true",
index 52b7700..e7acc6d 100644 (file)
@@ -2731,7 +2731,7 @@ Dygraph.prototype.computeYAxisRanges_ = function(extremes) {
               this.height_,  // TODO(danvk): should be area.height
               opts,
               this);
-      // Define the first indepentant axis as primary axis.
+      // Define the first independent axis as primary axis.
       if(!p_axis)
         p_axis = axis;
     }