include 0 in series data
authorAdam Bozanich <adam.boz@gmail.com>
Wed, 21 Apr 2010 09:08:40 +0000 (02:08 -0700)
committerAdam Bozanich <adam.boz@gmail.com>
Wed, 21 Apr 2010 09:08:40 +0000 (02:08 -0700)
dygraph.js

index dc4ff2b..a9b14ab 100644 (file)
@@ -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]]);
       }