projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8c77f3
)
REFACTORING: Changed if / else cases to optimize the performance for the
author
David Eberlein
<david.eberlein@ch.sauter-bc.com>
Thu, 18 Apr 2013 07:51:33 +0000
(09:51 +0200)
committer
David Eberlein
<david.eberlein@ch.sauter-bc.com>
Thu, 18 Apr 2013 07:51:33 +0000
(09:51 +0200)
default cases.
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
bfdfc4d
..
c09f9dd
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-2771,12
+2771,10
@@
Dygraph.prototype.extractSeries_ = function(rawData, i, logScale) {
}
}
// Fix null points to fit the display type standard.
- if(point === null && errorBars) {
- series.push([x, [null,null]]);
- } else if(point === null && customBars) {
- series.push([x, [null,null,null]]);
- } else {
+ if(point !== null) {
series.push([x, point]);
+ } else {
+ series.push([x, errorBars ? [null, null] : customBars ? [null, null, null] : point]);
}
}
return series;