From 77812e0eaac96feb43c1df07a62469b0ced75e60 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sat, 17 Nov 2012 19:10:22 -0600 Subject: [PATCH] Reparse when series is set for array data. --- dygraph.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.7.4