From: Dan Vanderkam Date: Thu, 3 Mar 2011 00:22:48 +0000 (-0500) Subject: fix bug (I think) introduced by 6faebb69 X-Git-Tag: v1.0.0~580 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=05a9ef8d3439863257c30f56fed2891e8b24ac0a;p=dygraphs.git fix bug (I think) introduced by 6faebb69 --- diff --git a/dygraph.js b/dygraph.js index 656d7a8..7f312b6 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2870,7 +2870,7 @@ Dygraph.prototype.detectTypeFromString_ = function(str) { this.attrs_.xTicker = Dygraph.dateTicker; this.attrs_.xAxisLabelFormatter = Dygraph.dateAxisFormatter; } else { - this.attrs_.xValueFormatter = this.attrs_.xValueFormatter; + this.attrs_.xValueFormatter = this.attrs_.yValueFormatter; this.attrs_.xValueParser = function(x) { return parseFloat(x); }; this.attrs_.xTicker = Dygraph.numericTicks; this.attrs_.xAxisLabelFormatter = this.attrs_.xValueFormatter;