From: Robert Konigsberg Date: Sun, 18 Nov 2012 01:10:34 +0000 (-0600) Subject: Fix mis-named method. X-Git-Tag: v1.0.0~168^2~4 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=dd724e22518d0c36dfd73eb946baa242caabc03e;p=dygraphs.git Fix mis-named method. --- diff --git a/dygraph-options.js b/dygraph-options.js index 33150fe..95c1525 100644 --- a/dygraph-options.js +++ b/dygraph-options.js @@ -39,7 +39,7 @@ var DygraphOptions = function(dygraph) { return; // -- can't do more for now, will parse after getting the labels. }; - this.reparseForLabels(); + this.reparseSeries(); } DygraphOptions.prototype.reparseSeries = function() { @@ -101,7 +101,7 @@ DygraphOptions.prototype.find = function(name) { DygraphOptions.prototype.findForAxis = function(name, axis) { - var axisIdx = (axis == "y2" || axis == 1) ? 1 : 0; + var axisIdx = (axis == "y2" || axis == "y2" || axis == 1) ? 1 : 0; var axisOptions = this.axes[axisIdx]; if (axisOptions.hasOwnProperty(name)) {