Skip to content

Parsing data object does not allow for Array Label #12065

Open
@doekenorg

Description

@doekenorg

Expected behavior

When datasets contain data objects with keys, the configured label key (xAxisKey) should also allow for multiple lines using the array notation.

Current behavior

When parsing data objects, labels on that object that are split into multiple lines using the array notation are not recognized.

I can enable the correct labels by adding a labels array. This will show the label, but the value for it is still not displayed.

Reproducible sample

https://codepen.io/doekenorg/pen/raaNPvM

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.4.9

Browser name and version

No response

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions