X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=b81a12cab844bd28639cb12e7837713d5949dc58;hb=06d4204c8b60c71cbb94f740ef07d34011c7c906;hp=900db689fdec59259281e2f847d37d2312f6dbec;hpb=780a5081d29a3c0a3c4f1d126f0992cf4fc14ebd;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 900db68..b81a12c 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -233,7 +233,7 @@ DygraphLayout.prototype._evaluateLineCharts = function() { var setName = this.setNames[setIdx]; var axis = this.dygraph_.axisPropertiesForSeries(setName); // TODO (konigsberg): use optionsForAxis instead. - var logscale = this.dygraph_.attributes_.getForSeries("logscale", setIdx); + var logscale = this.dygraph_.attributes_.getForSeries("logscale", setName); // Preallocating the size of points reduces reallocations, and therefore, // calls to collect garbage. @@ -325,7 +325,7 @@ DygraphLayout.prototype.evaluateWithError = function() { var setName = this.setNames[setIdx]; var axis = this.dygraph_.axisPropertiesForSeries(setName); // TODO (konigsberg): use optionsForAxis instead. - var logscale = this.dygraph_.attributes_.getForSeries("logscale", setIdx); + var logscale = this.dygraph_.attributes_.getForSeries("logscale", setName); for (j = 0; j < dataset.length; j++, i++) { var item = dataset[j];