Skip to content

PolarArea: point labels overlap on certain circumstances #11946

Open

Description

@jq2dj

Expected behavior

The point labels should not overlap, when using the option display: 'auto'. This option was enabled for the polar area with #11055.

Current behavior

The labels overlap sometimes, instead of not displaying them. This depends somehow on the size of the labels (length) and/or the size of the chart.

image

Depending on the size, the labels may overlap more or less. The detection of overlapping labels seems to work only partially. See the second chart in the sample, with more space, no label overlap, despite not showing all of the 100 labels.

Reproducible sample

https://codepen.io/nwi4/pen/dyxedNO

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.6

Browser name and version

Chrome 130.0.6723.71

Link to your project

No response

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