mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Docs/multiline labels (#8201)
* Docs/multiline labels Fixes #8172 * Update data-structures.md Update with if the labels is used since it can be skipped by providing the datapoints as an object
This commit is contained in:
parent
388918924f
commit
544f50888e
@ -4,6 +4,9 @@ title: Data structures
|
||||
|
||||
The `data` property of a dataset can be passed in various formats. By default, that `data` is parsed using the associated chart type and scales.
|
||||
|
||||
If the `labels` property of the main `data` property is used, it has to contain the same amount of elements as the dataset with the most values. These labels are used to label the index axis (default x axes). The values for the labels have to be provided in an array.
|
||||
The provides labels can be of the type string or number to be rendered correctly. In case you want multiline labels you can provide an array with each line as one entry in the array.
|
||||
|
||||
## Primitive[]
|
||||
|
||||
```javascript
|
||||
|
Loading…
Reference in New Issue
Block a user