projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10a6456
)
Some points may be null, not just undefined, so compare points via != with
author
Adam Vartanian
<flooey@gmail.com>
Mon, 3 May 2010 21:24:51 +0000
(17:24 -0400)
committer
Adam Vartanian
<flooey@gmail.com>
Mon, 3 May 2010 21:24:51 +0000
(17:24 -0400)
null (which will return false for both null and undefined).
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
077a329
..
eff107c
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1529,7
+1529,7
@@
Dygraph.prototype.drawGraph_ = function(data) {
var series = [];
for (var j = 0; j < data.length; j++) {
- if (data[j][i] !=
= undefined
|| !connectSeparatedPoints) {
+ if (data[j][i] !=
null
|| !connectSeparatedPoints) {
var date = data[j][0];
series.push([date, data[j][i]]);
}