fix bug
authorDan Vanderkam <danvdk@gmail.com>
Wed, 23 Dec 2009 22:55:27 +0000 (17:55 -0500)
committerDan Vanderkam <danvdk@gmail.com>
Wed, 23 Dec 2009 22:55:27 +0000 (17:55 -0500)
dygraph.js

index ff70bcb..aa02516 100644 (file)
@@ -1884,10 +1884,10 @@ Dygraph.prototype.visibility = function() {
   // Do lazy-initialization, so that this happens after we know the number of
   // data series.
   if (!this.attr_("visibility")) {
-    this.attr_["visibility"] = [];
+    this.attrs_["visibility"] = [];
   }
   while (this.attr_("visibility").length < this.rawData_[0].length - 1) {
-    this.attr_("visibility").push(false);
+    this.attr_("visibility").push(true);
   }
   return this.attr_("visibility");
 };