projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a91ce3
)
corrected number of months in a QUARTERLY granularity
author
David M Sibley
<dmsibley@usgs.gov>
Wed, 17 Apr 2013 17:18:41 +0000
(12:18 -0500)
committer
David M Sibley
<dmsibley@usgs.gov>
Wed, 17 Apr 2013 17:18:41 +0000
(12:18 -0500)
dygraph-tickers.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-tickers.js
b/dygraph-tickers.js
index
155afb0
..
b30b5a8
100644
(file)
--- 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; }