-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Focus vs. context point styling in the non-lassoed plot for crossfiltering #1762
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
Adding either
var trace = {
marker: {
color: 'red',
colorselected: 'blue',
opacity: 0.7,
opacityselected: 0.2
}
} or a separate var trace = {
marker: {
color: 'red',
opacity: 0.7
},
markerselected: {
color: 'blue',
opacity: 0.2
}
} I, personally, prefer the latter. Moreover, we should maybe add a boolean attribute, (e.g |
@etpinard thanks for the informed design! Currently, the rectangular and lasso selectors switch eliminated elements into an |
@etpinard maybe my example wasn't too clear in text, I whipped up a crossfiltering example in Vega-lite to show: Box selection was done on the left panel, see the grey box, and the greyed-out points outside the box (analogous to our box select). What I'm talking about above is the panel on the right, where the retained points remain unchanged (magenta) but the eliminated points show up with some other styling even though we didn't do a box select in that plot. (Technically, Vega doesn't restyle the eliminated points; it renders all data in grey and all kept data in magenta - we could mimic this with multiple traces, hmm maybe that's better than figuring out a new styling spec for crossfilter-eliminated points 😄 ) If you want to select yourself, copy the below into https://vega.github.io/editor (box select is quite slow at 2k points, wait a second or two)
|
Closing it in favor of #1847 which supersedes this item. |
Currently, lassoing a group of points (focus) causes the excluded points to fade (context).
For crossfiltering action, we similarly need to deemphasize points in other scatterplots that are linked to the same crossfilter. The effect can be mimicked by lowering the
opacity
on markers not currently selected, but it feels like meddling with the user supplied styling preferences. So this is a short conversation starter on whether we want to separate the lassoing input action from the focus+context differential rendering.The text was updated successfully, but these errors were encountered: