projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6688916
)
more robust missing values
author
Dan Vanderkam
<danvdk@gmail.com>
Tue, 14 Sep 2010 00:34:39 +0000
(17:34 -0700)
committer
Dan Vanderkam
<danvdk@gmail.com>
Tue, 14 Sep 2010 00:34:39 +0000
(17:34 -0700)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
ba266ab
..
37a9c30
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1900,8
+1900,8
@@
Dygraph.prototype.parseCSV_ = function(data) {
// Parse the x as a float or return null if it's not a number.
var parseFloatOrNull = function(x) {
-
if (x.length == 0) return null
;
- return
parseFloat(x)
;
+
var val = parseFloat(x)
;
+ return
isNaN(val) ? null : val
;
};
var xParser;