From: weboperator Date: Fri, 30 Jul 2010 13:13:22 +0000 (-0400) Subject: fixed visibility X-Git-Tag: v1.0.0~679 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=4523c1f6cf9739ca2f6767cfd38a5f02fb869dc1;p=dygraphs.git fixed visibility --- diff --git a/dygraph.js b/dygraph.js index ee5306c..34a387a 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1609,6 +1609,7 @@ Dygraph.prototype.drawGraph_ = function(data) { } for (var i = 1; i < datasets.length; i++) { + if (!this.visibility()[i - 1]) continue; this.layout_.addDataset(this.attr_("labels")[i], datasets[i]); }