From: Antoine Aumjaud Date: Sat, 26 May 2018 07:55:44 +0000 (+0200) Subject: Fix time documentation (#5507) X-Git-Tag: v2.7.3~1^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca9d3175c5fa9da69434cf7ed40b299fd221b667;p=thirdparty%2FChart.js.git Fix time documentation (#5507) --- diff --git a/docs/axes/cartesian/time.md b/docs/axes/cartesian/time.md index cefe9c248..fcda85d61 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' }