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:
LeeLenaleee 2020-12-20 17:49:39 +01:00 committed by GitHub
parent 388918924f
commit 544f50888e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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