Collision
See original GitHub issueI 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 this
cx: 434.368
cy: 74.09599999999998
x0: 388.0193671875
x1: 481.7166328125
y0: 58.69599999999998
y1: 90.49599999999998
Should 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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Collision | "North America's fastest growing tech conference"
"North America's fastest-growing tech conference”, Collision brings together Fortune 500 companies, groundbreaking startups and world-class speakers in ...
Read more >Collision Definition & Meaning - Merriam-Webster
collision implies the coming together of two or more things with such force that both or all are damaged or their progress is...
Read more >Collision - Wikipedia
In physics, a collision is any event in which two or more bodies exert forces on each other in a relatively short time....
Read more >Collision (2022) - IMDb
Collision : Directed by Fabien Martorell. With Langley Kirkwood, Tessa Jubber, Bonko Khoza, Vuyo Dabula. Freedom always comes at a price.
Read more >Collision | Official Trailer | Netflix - YouTube
One night in Johannesburg and their lives changed forever. # Collision premieres 16 June 2022, only on NetflixSubscribe: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I switched to apex charts as they are more modern, maybe it’s fixed the
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
_hitbox
outside the label so your previous implementation will break at the next release.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?