projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
auto_test for stacked annotations
[dygraphs.git]
/
dygraph-layout.js
diff --git
a/dygraph-layout.js
b/dygraph-layout.js
index
b99896b
..
2b3d137
100644
(file)
--- a/
dygraph-layout.js
+++ b/
dygraph-layout.js
@@
-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 = {};
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;
}
this.dygraph_.error("Annotations must have an 'x' property");
return;
}