Hello,
When selecting a point on a scatter map box, the other not selected points change there opacity, so you almost can’t see them anymore until you unselect the point again.
Is there any way to adjust this change in opacity for the not selected points, so they just drop to 70% or even stay at 100%, when selecting a point?
4 Likes
Haven’t tried it but would guess this is what you need to set https://plotly.com/python/reference/#scatter-unselected
@openafox That could possibly work in some cases. However, whereas the opacity as a parameter to Marker can be a vector (eg a column in your data matrix), the opacity as a parameter to Selected or Unselected can only be a single value.
I have the same problem as OP, and haven’t found a solution. Server-side, I group points into categories for which the user can turn visibility on or off (using opacity = 0 for off), and I’d like that categorisation to remain when the user selects a single point. Forcing unselected.opacity to a single visible value will make every other point (in all categories) visible.
I think the problem could be solved if selected.opacity also accepted a vector, just as marker.opacity does.