override, don't add
authorDan Vanderkam <danvk@google.com>
Fri, 15 Oct 2010 15:14:51 +0000 (11:14 -0400)
committerDan Vanderkam <danvk@google.com>
Fri, 15 Oct 2010 15:14:51 +0000 (11:14 -0400)
dygraph-canvas.js

index 8801f1b..817370d 100644 (file)
@@ -33,6 +33,7 @@ DygraphLayout.prototype.addDataset = function(setname, set_xy) {
 DygraphLayout.prototype.setAnnotations = function(ann) {
   // The Dygraph object's annotations aren't parsed. We parse them here and
   // save a copy.
+  this.annotations = [];
   var parse = this.attr_('xValueParser');
   for (var i = 0; i < ann.length; i++) {
     var a = {};