Skip to content

Commit

Permalink
Fix time documentation (#5507)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-aumjaud authored and simonbrunel committed May 26, 2018
1 parent 25b7f41 commit ca9d317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/axes/cartesian/time.md
Expand Up @@ -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(),
Expand Down Expand Up @@ -64,6 +64,7 @@ var chart = new Chart(ctx, {
options: {
scales: {
xAxes: [{
type: 'time',
time: {
unit: 'month'
}
Expand Down

0 comments on commit ca9d317

Please sign in to comment.