fix bug (I think) introduced by 6faebb69
authorDan Vanderkam <dan@dygraphs.com>
Thu, 3 Mar 2011 00:22:48 +0000 (19:22 -0500)
committerDan Vanderkam <dan@dygraphs.com>
Thu, 3 Mar 2011 00:22:48 +0000 (19:22 -0500)
dygraph.js

index 656d7a8..7f312b6 100644 (file)
@@ -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;