mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix time documentation (#5507)
This commit is contained in:
parent
25b7f41bac
commit
ca9d3175c5
@ -6,7 +6,7 @@ The time scale is used to display times and dates. When building its ticks, it w
|
|||||||
|
|
||||||
### Input Data
|
### 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: [{
|
data: [{
|
||||||
x: new Date(),
|
x: new Date(),
|
||||||
@ -64,6 +64,7 @@ var chart = new Chart(ctx, {
|
|||||||
options: {
|
options: {
|
||||||
scales: {
|
scales: {
|
||||||
xAxes: [{
|
xAxes: [{
|
||||||
|
type: 'time',
|
||||||
time: {
|
time: {
|
||||||
unit: 'month'
|
unit: 'month'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user