From: Dan Vanderkam Date: Thu, 29 Aug 2013 19:10:37 +0000 (-0400) Subject: add dygraph-constants.js X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=7cd1ffe5f1c342a4774836442afb165a2612c375;p=dygraphs.git add dygraph-constants.js --- diff --git a/dygraph-constants.js b/dygraph-constants.js new file mode 100644 index 0000000..0b0f21f --- /dev/null +++ b/dygraph-constants.js @@ -0,0 +1,26 @@ +// Time granularity enumeration +/** @enum{number} */ +var DygraphGranularities = { + SECONDLY: 0, + TWO_SECONDLY: 1, + FIVE_SECONDLY: 2, + TEN_SECONDLY: 3, + THIRTY_SECONDLY : 4, + MINUTELY: 5, + TWO_MINUTELY: 6, + FIVE_MINUTELY: 7, + TEN_MINUTELY: 8, + THIRTY_MINUTELY: 9, + HOURLY: 10, + TWO_HOURLY: 11, + SIX_HOURLY: 12, + DAILY: 13, + WEEKLY: 14, + MONTHLY: 15, + QUARTERLY: 16, + BIANNUAL: 17, + ANNUAL: 18, + DECADAL: 19, + CENTENNIAL: 20, + NUM_GRANULARITIES: 21 +};