From: Dan Vanderkam Date: Tue, 21 Dec 2010 22:18:00 +0000 (-0500) Subject: fix sp X-Git-Tag: v1.0.0~593^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3db4c464075f816cc858f69bb378126cf8c639ab;p=dygraphs.git fix sp --- 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 {