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

PolarArea: point labels overlap on certain circumstances #11946

Open
jq2dj opened this issue Oct 31, 2024 · 0 comments
Open

PolarArea: point labels overlap on certain circumstances #11946

jq2dj opened this issue Oct 31, 2024 · 0 comments

Comments

@jq2dj
Copy link

jq2dj commented Oct 31, 2024

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
Projects
None yet
Development

No branches or pull requests

1 participant