From 7cd1ffe5f1c342a4774836442afb165a2612c375 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 29 Aug 2013 15:10:37 -0400 Subject: [PATCH] add dygraph-constants.js --- dygraph-constants.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 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 +}; -- 2.7.4