Closed monfera closed 7 years ago
traces/scatter/plot.js
? Seems potentially tricky to get working flawlessly alongside all the other trace styling features.I think leaving as is is probably okay for now, then option 4 would be next for me since it seems the most 'correct'. Right now it feels like somewhat of a corner case that markers exactly overlap each other. I think maybe a more common case would be that markers partially overlap each other so that it's somewhat less ambiguous, or at least that it at best just augments what's conveyed by the selection box, so that the above issue isn't ideal but also isn't fundamentally misleading.
Overall I'd put in the "either the simple way with option 4 or just very nice to have but adds a fair amount of complexity so that it's probably not worth addressing until it keeps showing up and becomes necessary to address" category.
Good point @monfera - I did notice this when putting together selections initially but ignored it. Perhaps it's time to revisit...
I really like the effect of a point popping on/off as it crosses the selection boundary - which would change to a slow fade in/out with a mask - both less appealing and less useful as you can't really tell which points will be included/excluded.
It's probably also worth mentioning that if there are a lot of traces, the trace opacity approach will fall down in the same way.
What if instead of changing opacity, we blend each deselected point with the background color, such that they all get the same color as a solo point does now, regardless of overlap?
Maybe we should merge this ticket with https://github.com/plotly/plotly.js/issues/1847
Closing this ticket in favor of https://github.com/plotly/plotly.js/issues/1847
In case of selecting an area, the markers ourside of the drawn area are faded. It's achieved by lowering glyph opacities. It works well in the special case when there isn't significant marker overlap. 2-3 overlapping transparent points however look like a single, fully opaque point as if inside the selection box.
Wondering about how best to solve it at some point as we have some more general issues pertaining crossfilter and other differential styling.
Example animgif explanation: first there's the current box select at work; then, upon release, the style is persisted with a
crossfilter
approach that's item 2 below.Options, weaknesses:
crossfilter
, are fully in the user's control); convoluted in the presence of multiple traces; lines can't be done to general satisfactionMaybe it's been figured out or deemed unimportant, I'd be interested if it's a useful topic at all.