From 544f50888ecac9aa705afa75b00a25711391616f Mon Sep 17 00:00:00 2001 From: LeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com> Date: Sun, 20 Dec 2020 17:49:39 +0100 Subject: [PATCH] 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 --- docs/docs/general/data-structures.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docs/general/data-structures.md b/docs/docs/general/data-structures.md index 0e4db12bb..113e72660 100644 --- a/docs/docs/general/data-structures.md +++ b/docs/docs/general/data-structures.md @@ -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 -- 2.47.2