From: Adam Bozanich Date: Wed, 21 Apr 2010 09:08:40 +0000 (-0700) Subject: include 0 in series data X-Git-Tag: v1.0.0~692 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=cff76ecb51e35a3eb2c55db839b5c87b87e4daa2;p=dygraphs.git include 0 in series data --- diff --git a/dygraph.js b/dygraph.js index dc4ff2b..a9b14ab 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1523,7 +1523,7 @@ Dygraph.prototype.drawGraph_ = function(data) { var series = []; for (var j = 0; j < data.length; j++) { - if (data[j][i] || !connectSeparatedPoints) { + if (data[j][i] !== undefined || !connectSeparatedPoints) { var date = data[j][0]; series.push([date, data[j][i]]); }