From 4a634fc709319a85a2bb74c1f48b885b029b1b0b Mon Sep 17 00:00:00 2001 From: Adam Vartanian Date: Mon, 3 May 2010 17:24:51 -0400 Subject: [PATCH] Some points may be null, not just undefined, so compare points via != with null (which will return false for both null and undefined). --- dygraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index 077a329..eff107c 100644 --- 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]]); } -- 2.7.4