-
Notifications
You must be signed in to change notification settings - Fork 464
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
Handling overlapping labels #356
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I'm using this plugin to show data labels on a scatter graph.
Here is a fully working example on Codepen: https://codepen.io/LondonAppDev/pen/oNyReVr
I want to implement a "bring to the front" effect of labels when you hover over them. So all labels are visible and overlap, but when I hover over a point/label it is brought to the foreground.
After reading the docs, I see that the order is determined using the
dataIndex
and thendatasetIndex
, so I tried to implement it by adding the following tooptions.plugins.datalabels.labels.value
:This unfortunately doesn't work, it just seems to crash when I hover.
Does anyone know if this is possible to achieve?
The text was updated successfully, but these errors were encountered: