Skip to content

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

Closed

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

Activity

  1. annelibogren commented on Feb 28, 2024

    @annelibogren

    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

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