Skip to content

Bar chart with indexAxis: 'y' requires data.labels (whereas 'x' does not) #11684

@andilem

Description

@andilem

Expected behavior

A bar chart with indexAxis: 'y' should behave the same (mirrored) as with indexAxis: 'x'. data.labels should not be required.

Current behavior

A bar chart with indexAxis: 'y' doesn't show anything if data.labels is not defined.

Reproducible sample

https://codepen.io/alemmer/pen/PoLMLgz

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.1

Browser name and version

any

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