Skip to content

Commit

Permalink
Fix time documentation (chartjs#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 3cdd164 commit e1b153a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/axes/cartesian/time.md
Original file line number Diff line number Diff line change
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 e1b153a

Please sign in to comment.