fixed visibility
authorweboperator <weboperator@ubuntu-local-vbox.(none)>
Fri, 30 Jul 2010 13:13:22 +0000 (09:13 -0400)
committerweboperator <weboperator@ubuntu-local-vbox.(none)>
Fri, 30 Jul 2010 13:13:22 +0000 (09:13 -0400)
dygraph.js

index ee5306c..34a387a 100644 (file)
@@ -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]);
   }