X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=e30c7a12f011b5007fa0b8b38b23a11fe99cf69c;hb=4bac38d823c13a4e9adc717500474417eef1f41a;hp=3e8a7614dc37b4e1611f0cdc4c4201dea959f15c;hpb=fa460473ef9397759466361ff32de56a4f8fa956;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 3e8a761..e30c7a1 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -130,7 +130,7 @@ 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) { this.dygraph_.error("Annotations must have an 'x' property"); return; }