From dd724e22518d0c36dfd73eb946baa242caabc03e Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sat, 17 Nov 2012 19:10:34 -0600 Subject: [PATCH 1/1] Fix mis-named method. --- dygraph-options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) { -- 2.7.4