projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #250 from wimme/patch-4
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
bd11c24
..
dc3b798
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-2824,12
+2824,20
@@
Dygraph.prototype.extractSeries_ = function(rawData, i, logScale) {
if (logScale) {
// On the log scale, points less than zero do not exist.
// This will create a gap in the chart.
if (logScale) {
// On the log scale, points less than zero do not exist.
// This will create a gap in the chart.
- if (point <= 0) {
+ if (errorBars || customBars) {
+ // point.length is either 2 (errorBars) or 3 (customBars)
+ for (var k = 0; k < point.length; k++) {
+ if (point[k] <= 0) {
+ point = null;
+ break;
+ }
+ }
+ } else if (point <= 0) {
point = null;
}
}
// Fix null points to fit the display type standard.
point = null;
}
}
// Fix null points to fit the display type standard.
- if(point !== null) {
+ if
(point !== null) {
series.push([x, point]);
} else {
series.push([x, errorBars ? [null, null] : customBars ? [null, null, null] : point]);
series.push([x, point]);
} else {
series.push([x, errorBars ? [null, null] : customBars ? [null, null, null] : point]);