From ccb1c68b65844dad698e195f0ef4d7cd134bef8e Mon Sep 17 00:00:00 2001 From: etimberg Date: Mon, 30 Nov 2015 20:47:49 -0500 Subject: [PATCH] Update docs --- docs/01-Scales.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/01-Scales.md b/docs/01-Scales.md index a1ecc7c24..be4872dd0 100644 --- a/docs/01-Scales.md +++ b/docs/01-Scales.md @@ -150,8 +150,19 @@ The time scale extends the core scale class with the following tick template: unit: false, // string - By default, no rounding is applied. To round, set to a supported time unit eg. 'week', 'month', 'year', etc. round: false, - // string - By default, is set to the detected (or manually overridden) time unit's `display` property (see supported time measurements). To override, use a pattern string from http://momentjs.com/docs/#/displaying/format/ - displayFormat: false + // Moment js for each of the units. Replaces `displayFormat` + // To override, use a pattern string from http://momentjs.com/docs/#/displaying/format/ + displayFormats: { + 'millisecond': 'SSS [ms]', + 'second': 'h:mm:ss a', // 11:20:01 AM + 'minute': 'h:mm:ss a', // 11:20:01 AM + 'hour': 'MMM D, hA', // Sept 4, 5PM + 'day': 'll', // Sep 4 2015 + 'week': 'll', // Week 46, or maybe "[W]WW - YYYY" ? + 'month': 'MMM YYYY', // Sept 2015 + 'quarter': '[Q]Q - YYYY', // Q3 + 'year': 'YYYY', // 2015 + }, }, } ``` -- 2.47.2