From e1b153a96d796b6e6dcedd9505c86f767a93e09d Mon Sep 17 00:00:00 2001 From: Antoine Aumjaud Date: Sat, 26 May 2018 09:55:44 +0200 Subject: [PATCH] Fix time documentation (#5507) --- docs/axes/cartesian/time.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/axes/cartesian/time.md b/docs/axes/cartesian/time.md index cefe9c24806..fcda85d6173 100644 --- a/docs/axes/cartesian/time.md +++ b/docs/axes/cartesian/time.md @@ -6,7 +6,7 @@ The time scale is used to display times and dates. When building its ticks, it w ### Input Data -The x-axis data points may additionally be specified via the `t` attribute when using the time scale. +The x-axis data points may additionally be specified via the `t` or `x` attribute when using the time scale. data: [{ x: new Date(), @@ -64,6 +64,7 @@ var chart = new Chart(ctx, { options: { scales: { xAxes: [{ + type: 'time', time: { unit: 'month' }