mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Clarify that x/y coordinates only work with the time scale (#4826)
This commit is contained in:
parent
3fe198c860
commit
fa2ca2c1e2
@ -152,7 +152,7 @@ The `data` property of a dataset for a bar chart is specified as a an array of n
|
||||
data: [20, 10]
|
||||
```
|
||||
|
||||
You can also specify the dataset as x/y coordinates.
|
||||
You can also specify the dataset as x/y coordinates when using the [time scale](./time.md).
|
||||
|
||||
```javascript
|
||||
data: [{x:'2016-12-25', y:20}, {x:'2016-12-26', y:10}]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user