-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Hover events on the lines themselves #1960
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
Comments
Yeah, makes sense, I can certainly see wanting this, and it would be nice to couple it with a line highlighting mode (where all other line traces fade out when you hover on one line). Relevant to all the scatter types in fact. It'll be a bit tricky to figure out how this should work:
|
OP Here, I'm somewhat familiar with the mechanics of geometry creation in leaflet and mapbox, less clear on what's happening under the hood with plotly. Could "scatterlines" just behave as lines for the most part? If a plot creator wants functionality related to the points on the line, then they could add the same dataset as points and control point events separately. That's how leaflet would treat the objects. |
The reason these are all lumped under one trace type is lines, points, point text, and fills are all independently togglable elements - so I suspect by default we're always going to want them to be treated identically. And for backward compatibility I don't think we can change that until v2 anyway. But in my first comment I had forgotten that we already implemented something similar with |
I would like to have an option to detect click on line, not even a data point on a line... |
I was wondering if there has been any progress on this, with v2 out for a long time and 6 years since reporting? Just trying it out it seems no events fire on the lines, only on the "data points". When covering those with another marker layer there is no access to the lines at all without filtering through legends. |
A dash community user brought this up https://community.plot.ly/t/linking-scattermapbox-lines-to-other-data-with-callbacks/5449
They would like some type of event be fired when hovering over lines instead of just points:
The text was updated successfully, but these errors were encountered: