From 7d9664888dfb1a7f32b8523408d8c24e42305c06 Mon Sep 17 00:00:00 2001 From: David M Sibley Date: Wed, 17 Apr 2013 12:18:41 -0500 Subject: [PATCH] corrected number of months in a QUARTERLY granularity --- dygraph-tickers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph-tickers.js b/dygraph-tickers.js index 155afb0..b30b5a8 100644 --- a/dygraph-tickers.js +++ b/dygraph-tickers.js @@ -314,7 +314,7 @@ Dygraph.numDateTicks = function(start_time, end_time, granularity) { } else { var year_mod = 1; // e.g. to only print one point every 10 years. var num_months = 12; - if (granularity == Dygraph.QUARTERLY) num_months = 3; + if (granularity == Dygraph.QUARTERLY) num_months = 4; if (granularity == Dygraph.BIANNUAL) num_months = 2; if (granularity == Dygraph.ANNUAL) num_months = 1; if (granularity == Dygraph.DECADAL) { num_months = 1; year_mod = 10; } -- 2.7.4