-
Notifications
You must be signed in to change notification settings - Fork 626
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
Interactive views should use cursors to provide affordance #4155
Comments
When fixing this issue, please also update this example. |
Single/Multi -- Use Brush use Pan uses |
Falcon uses pretty reasonable cursors. |
To make it easy to follow, what’re the difference between suggested set above? |
And you can give it a try at https://uwdata.github.io/falcon/flights/. The difference is that resize has a cursor as well (which we don't support yet) and I use |
Can this be done today with the cursor signal? |
Vega-Lite does not yet have support for signals. You can modify the Vega, yes. |
To create affordance for brush panning, switch the user's mouse cursor to 'move' when dragging/hovering over a displayed interval selection. <img width="232" alt="274331754-21cffb6f-09e4-479a-b69e-d8cc52297adb" src="https://github.com/vega/vega-lite/assets/53187264/1059c619-cbf2-4b7c-ab44-095091935c95"> Contributes to #4155 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kanit Wongsuphasawat <[email protected]> Co-authored-by: GitHub Actions Bot <[email protected]> Co-authored-by: Dominik Moritz <[email protected]> Co-authored-by: Kanit Wongsuphasawat <[email protected]>
We now have move cursors over brushes for interval selections thanks to @alliefeldman in #9164. |
To add to the suggestions above, it would be great if binding a selection to the legend also automatically changes the cursor to indicate that the legend is clickable. |
I don't think it's even possible to do this for legends manually (such as with a mark's cursor property) at the moment. Open the Chart in the Vega Editor |
For example, when the user can create a brush, it would be nice to change the cursor accordingly.
An interactive mark with a point selection should use a
"cursor": "pointer"
(as we did manually in https://vega.github.io/editor/#/examples/vega-lite/interactive_bar_select_highlight).The text was updated successfully, but these errors were encountered: