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

dynamically move colliding labels #1863

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jondaley
Copy link

@jondaley jondaley commented Nov 8, 2023

Reformatted https://stackoverflow.com/questions/9496689/overlapping-labels-in-flot-pie-chart (there is an existing pull request, but it had a bunch of space changes so hard to see what was actually changed).

I also "upgraded" the SO code by adding in a repeat to try multiple times to move the elements around, by moving up and down.

There was a bug in the code in that it didn't update the label_pos so created more collisions than it needed to.

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

Successfully merging this pull request may close these issues.

None yet

1 participant