From 2d66077028d637fd5b70e40249fe223b52b09a9a Mon Sep 17 00:00:00 2001 From: David Eberlein Date: Fri, 12 Apr 2013 16:12:16 +0200 Subject: [PATCH] BUGFIX: First try of fixing missing data bug for customBars and errorBars --- dygraph.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index f11fa74..dd0a524 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2768,7 +2768,14 @@ Dygraph.prototype.extractSeries_ = function(rawData, i, logScale) { point = null; } } - series.push([x, point]); + // Fix null points to fit the display type standard. + if(point === null && this.attr_("errorBars")){ + series.push([x, [null,null]]); + }else if(point === null && this.attr_("customBars")){ + series.push([x, [null,null,null]]); + } else { + series.push([x, point]); + } } return series; }; -- 2.7.4