From 3db4c464075f816cc858f69bb378126cf8c639ab Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 21 Dec 2010 17:18:00 -0500 Subject: [PATCH] fix sp --- dygraph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dygraph.js b/dygraph.js index 796cc99..bbb3302 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1649,7 +1649,7 @@ Dygraph.QUARTERLY = 16; Dygraph.BIANNUAL = 17; Dygraph.ANNUAL = 18; Dygraph.DECADAL = 19; -Dygraph.CENTENIAL = 20; +Dygraph.CENTENNIAL = 20; Dygraph.NUM_GRANULARITIES = 21; Dygraph.SHORT_SPACINGS = []; @@ -1686,7 +1686,7 @@ Dygraph.prototype.NumXTicks = function(start_time, end_time, granularity) { if (granularity == Dygraph.BIANNUAL) num_months = 2; if (granularity == Dygraph.ANNUAL) num_months = 1; if (granularity == Dygraph.DECADAL) { num_months = 1; year_mod = 10; } - if (granularity == Dygraph.CENTENIAL) { num_months = 1; year_mod = 100; } + if (granularity == Dygraph.CENTENNIAL) { num_months = 1; year_mod = 100; } var msInYear = 365.2524 * 24 * 3600 * 1000; var num_years = 1.0 * (end_time - start_time) / msInYear; @@ -1759,7 +1759,7 @@ Dygraph.prototype.GetXAxis = function(start_time, end_time, granularity) { } else if (granularity == Dygraph.DECADAL) { months = [ 0 ]; year_mod = 10; - } else if (granularity == Dygraph.CENTENIAL) { + } else if (granularity == Dygraph.CENTENNIAL) { months = [ 0 ]; year_mod = 100; } else { -- 2.7.4