Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can’t specify multiple inputs’ values for the same selection #401

Closed
tarekrached opened this issue May 23, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@tarekrached
Copy link

I'm unable to specify multiple inputs’ values for the same selection.

Repro: Add value: fencing and value: female to the first two menus (here and here) in specs/yaml/athletes.yaml and load the “Athletes” example in the dev server. See that only the first menu has its value pre-selected:

image
@jheer jheer self-assigned this May 23, 2024
@jheer jheer added the bug Something isn't working label May 23, 2024
@jheer
Copy link
Member

jheer commented May 23, 2024

Thanks! I suspect the shared selection is updating with the first value and that this is then interfering with the second value being properly added. Such values should interfere when the selection resolution strategy is single, but not in this case where we have a standard intersect selection. I'll look into it.

@jheer
Copy link
Member

jheer commented May 23, 2024

PR #403 fixes this issue: initial values should be properly reflected in the menu and populated in the selection. It will be included in the next release.

However, note that setting initial values can lead to other wrinkles if you are using Fixed domains. Fixed domains initialize to the first data seen and are then locked in place. So if you start with filtered data, you will get locked-in domains over the filtered ranges. So for now you may want to "hardwire" scale domains to desired values to have the scales reflect the full range of the data and remain fixed.

@jheer jheer closed this as completed May 23, 2024
@jheer jheer mentioned this issue May 29, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants