Can't include points on the log scale when the values are zero. How was this missed?
authorRobert Konigsberg <konigsberg@google.com>
Fri, 4 Feb 2011 23:09:02 +0000 (18:09 -0500)
committerRobert Konigsberg <konigsberg@google.com>
Fri, 4 Feb 2011 23:09:02 +0000 (18:09 -0500)
dygraph.js

index e340a7b..4a1cef2 100644 (file)
@@ -2249,7 +2249,7 @@ Dygraph.prototype.drawGraph_ = function() {
         // On the log scale, points less than zero do not exist.
         // This will create a gap in the chart. Note that this ignores
         // connectSeparatedPoints.
         // On the log scale, points less than zero do not exist.
         // This will create a gap in the chart. Note that this ignores
         // connectSeparatedPoints.
-        if (point < 0) {
+        if (point <= 0) {
           point = null;
         }
         series.push([date, point]);
           point = null;
         }
         series.push([date, point]);