From 74dfe455f0ab5ecbb87a42fe0b5c45eee442761b Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Fri, 4 Feb 2011 18:09:02 -0500 Subject: [PATCH 1/1] Can't include points on the log scale when the values are zero. How was this missed? --- dygraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index e340a7b..4a1cef2 100644 --- a/dygraph.js +++ b/dygraph.js @@ -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. - if (point < 0) { + if (point <= 0) { point = null; } series.push([date, point]); -- 2.7.4