X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=dygraph.js;h=94b536d86da9052462d57e5720c70dfbe3eea35f;hb=33127159a1b5e23b1b7bf649e7d693915d198767;hp=6ef0835ae9e92d2d25531792e81d3eb112cb1a6c;hpb=aa77ab99a6d5a54c5f8510b0662310c743d8b9f4;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 6ef0835..94b536d 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1397,12 +1397,12 @@ Dygraph.prototype.parseDataTable_ = function(data) { this.attrs_.xValueFormatter = Dygraph.dateString_; this.attrs_.xValueParser = Dygraph.dateParser; this.attrs_.xTicker = Dygraph.dateTicker; - } else if (indepType != 'number') { + } else if (indepType == 'number') { this.attrs_.xValueFormatter = function(x) { return x; }; this.attrs_.xValueParser = function(x) { return parseFloat(x); }; this.attrs_.xTicker = Dygraph.numericTicks; } else { - this.error("only 'date' and 'number' types are supported for column 1" + + this.error("only 'date' and 'number' types are supported for column 1 " + "of DataTable input (Got '" + indepType + "')"); return null; }