Annotation date parser was failing, but not providing the correct
authorRobert Konigsberg <konigsberg@google.com>
Tue, 24 May 2011 21:13:48 +0000 (17:13 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Tue, 24 May 2011 21:13:48 +0000 (17:13 -0400)
message because it didn't have a reference to the dygraph, aka "self".

dygraph-canvas.js

index 764bac1..d6570d1 100644 (file)
@@ -70,7 +70,7 @@ DygraphLayout.prototype.setAnnotations = function(ann) {
       return;
     }
     Dygraph.update(a, ann[i]);
-    if (!a.xval) a.xval = parse(a.x);
+    if (!a.xval) a.xval = parse(a.x, this.dygraph_);
     this.annotations.push(a);
   }
 };