-
Notifications
You must be signed in to change notification settings - Fork 460
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
Collision #72
Comments
Thanks. Looks like same issues but I see no solutions though. Will try to find the properties from a variable without _ in front, but I don't know if that's possible. Also I need to figure out how to update the labels location. Will be happy to share a jsfiddle later, but for now it's integrated in a vue component so a lot of extra code around it. |
I have been looking and seems to be nearly no public API then I can access? This is how far I am in the code
|
No because the plugin is still in beta and I don't want to commit on implementation details. I'm currently rewriting the whole layouting part and moved the Anyway, I'm currently looking to introduce a new option to prevent labels to overlap and I'm wondering what is your expected behavior when 2 labels overlap? |
|
I'm having the same issue and while I find generic or D3 solutions (here for example), they are difficult to implement for Chart.js as the algorithms aren't simple. I'm using a bubble chart and it's becoming an increasingly worse issue while the amount of our data is getting bigger. Do we still have any kind of solution for this? |
I switched to apex charts as they are more modern, maybe it's fixed the |
I am using datalabels on my bubble chart, but sometimes the bubbles and datalabels collide. Is there any solution to fix collision or detect when they are overlapping?
I can see that in the path
chart > $datalabels > labels > [1] > [..n] > Label > _hitbox > _rect
I have thisShould I check if there's something overlapping there?
update
I can see a problem with this approach as the
_rect
isn't updated until there has been a mouse over.The text was updated successfully, but these errors were encountered: