auto_test for stacked annotations
[dygraphs.git] / dygraph-layout.js
index b99896b..2b3d137 100644 (file)
@@ -130,7 +130,8 @@ DygraphLayout.prototype.setAnnotations = function(ann) {
   var parse = this.attr_('xValueParser') || function(x) { return x; };
   for (var i = 0; i < ann.length; i++) {
     var a = {};
-    if (!ann[i].xval && !ann[i].x) {
+    if (!ann[i].xval && ann[i].x === undefined) {
+      console.log(ann[i]);
       this.dygraph_.error("Annotations must have an 'x' property");
       return;
     }