-
Notifications
You must be signed in to change notification settings - Fork 5
feat: Interactive multi filters #2352
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…into explore/table-interactive-filters
…nent uses, not only segmentation
...so that we can support table charts too.
…into explore/table-interactive-filters
|
Hi @bprusinowski, thanks a lot for the update! We’ve tested the interactive filters extensively and are really happy with the new feature. While testing, we noticed a few points we’d like to raise:
|
|
Hi @zumbov2, thanks a lot for the feedback, it's super valuable! We will address these issues next week. cc @sosiology |
|
Hi @zumbov2 👋 Several issues you mentioned (and one from @l00mi) should be fixed soon via #2448. I have a few comments for the last points you raised: Filters currently don’t seem to account for hierarchical dependenciesGenerally, I think we didn't discuss this use case during our syncs – it's a bit different situation that we have with interactive multi filters compared to single filters we support for years now, where we have a cascading behavior (left-side filters constrain the values of right-side filters). We couldn't re-use the same approach here, as we can e.g. only have a value selected in the right-side filter, leaving left-side one in an empty state. I am not sure if this is 100% clear, but generally changing this behavior could be a more complex thing that would take some time (to have e.g. a Power BI-like behavior). Let me know if this is something that's important for you, I think we should still have time to potentially investigate this – but it's also hard to estimate how much it would take. Year slider missing a titleThis should be a minor change to make, but we've left it out for now to not occupy additional space, specially on mobile and in embed mode (we also technically do not have title for other interactive slider in other places). As usually we have only one temporal dimension in a dataset, it seemed like a valid "omission", but again – let me know if this is something you'd like to have implemented in the app 👍 Permanently showing the sort arrowI've reached out to a designer working on Visualize to double check this, to also check what she thinks and will reach out to back to you. cc @adintegra |
|
Hey @bprusinowski, thanks a lot! I wasn’t fully aware of the hierarchical possibilities of single filters, but Michael brought me up to speed five minutes ago. I guess those would cover what we had in mind for now. Sorry! Year slider missing a title: I see your point, and the omission is fine by us. Permanently showing the sort arrow: Thanks for checking with the designer - I'm happy for you to keep me in the loop. Looking forward! |
|
Hi @zumbov2, great to hear this! Just a note, so we are on the same page: interactive single filters can be applied to other chart types, not tables (so the issue you mentioned would potentially need to be solved in a different way). Thanks also for your feedback on the slider title, we'll leave the title out for now then. In the meantime I checked with our designer and made a change so that the sorting arrows are always shown at 50% opacity when not custom sorted by the end user; and 100% when sorted, like before. The changes should be ready for testing in #2448. Let me know in case of any additional feedback! |
|
@zumbov2 yes, this is controlled at the data level, you can see that in another dataset it's possible to select "parent" values: https://test.visualize.admin.ch/en/v/joZisQ8kgqwP?dataSource=Prod Generally we support both cases, when hierarchy has value and is simply a bucket to group other values 👍 |
Hey @bprusinowski In our case, it’s mostly about nested data structures: for a given political referendum, we have a higher-level status category (e.g. Laufend) and a more granular subcategory (e.g. Unterschriftenprüfung). Initially, I thought we would need to have two filters (one for the higher level and one for the lower level), and that it would look odd if the lower level didn’t correspond to the first one. But with the hierarchical possibilities of single filters, we can avoid that. |
|
Ah, I see – you're right, hierarchies sound like a good use case here 👌 |




Closes #2297
Closes #2373
Closes #2422
Closes #2425
Closes #2427
Closes #2428
Closes #2431
Closes #2433
This PR adds support for displaying interactive filters based on multi-filters.
interactiveFiltersConfigis now present in every chart type, including tablesMultiFilterFieldcan enable interactive filter now, including selecting a default valueNo filtervalue in the dropdown to show full dataHow to test
Kantoncolumn.Interactiveswitch.No filtervalue by default).None.