Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
andilem opened this issue Feb 27, 2024 · 1 comment · Fixed by #11690
Closed

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

andilem opened this issue Feb 27, 2024 · 1 comment · Fixed by #11690

Comments

@andilem
Copy link

andilem commented Feb 27, 2024

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

@annelibogren
Copy link

annelibogren commented Feb 28, 2024

Hi, we are a group of students at the KTH Royal Institute of Technology and are taking a course in software engineering. We would like to work on this issue in one of our upcoming assignments and are therefore wondering if we could be assigned to it? Thanks!

Update: @ItsRkaj just made a PR with a solution, he is part of our group!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants