From: Robert Konigsberg Date: Sun, 18 Nov 2012 01:10:22 +0000 (-0600) Subject: Reparse when series is set for array data. X-Git-Tag: v1.0.0~168^2~5 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=77812e0eaac96feb43c1df07a62469b0ced75e60;p=dygraphs.git Reparse when series is set for array data. --- diff --git a/dygraph.js b/dygraph.js index ae61842..fa8823e 100644 --- a/dygraph.js +++ b/dygraph.js @@ -3108,8 +3108,9 @@ Dygraph.prototype.parseArray_ = function(data) { "in the options parameter"); this.attrs_.labels = [ "X" ]; for (i = 1; i < data[0].length; i++) { - this.attrs_.labels.push("Y" + i); + this.attrs_.labels.push("Y" + i); // Not user_attrs_. } + this.attributes_.reparseSeries(); } else { var num_labels = this.attr_("labels"); if (num_labels.length != data[0].length) {