From: Adam Vartanian Date: Mon, 3 May 2010 21:24:51 +0000 (-0400) Subject: Some points may be null, not just undefined, so compare points via != with X-Git-Tag: v1.0.0~687 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=4a634fc709319a85a2bb74c1f48b885b029b1b0b;p=dygraphs.git Some points may be null, not just undefined, so compare points via != with null (which will return false for both null and undefined). --- 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]]); }