Skip to content
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

Binding selection param to axis for interaction #7394

Closed
tonyxiao opened this issue Apr 17, 2021 · 1 comment
Closed

Binding selection param to axis for interaction #7394

tonyxiao opened this issue Apr 17, 2021 · 1 comment

Comments

@tonyxiao
Copy link

It is already possible to bind selection to a legend (https://vega.github.io/vega-lite/docs/bind.html)

However sometimes it is a lot more convenient to be interaction with axis label instead, especially when the data point represented is so small that it is very difficult to select it otherwise. Here's an illustration of the problem.

CleanShot 2021-04-17 at 10 16 07

Here's what I'm thinking of

"params": [{
    "name": "currency",
    "select": {"type": "point"},
    "bind": "axisLabel"
  }]
@domoritz
Copy link
Member

Duplicate of #1657. Please add your example to the other thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants