From 4523c1f6cf9739ca2f6767cfd38a5f02fb869dc1 Mon Sep 17 00:00:00 2001 From: weboperator Date: Fri, 30 Jul 2010 09:13:22 -0400 Subject: [PATCH] fixed visibility --- dygraph.js | 1 + 1 file changed, 1 insertion(+) 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]); } -- 2.7.4