Skip to content

Examples on how to Reset a Cross-filter Selection #262

Answered by Unemyr
Unemyr asked this question in Q&A
Discussion options

You must be logged in to vote

Adding some notes here for future references to others who are looking to do the same thing. This is likely not the best-practice approach to achieve this, but it works.

In order to match the plot to remove the selection from programmatically, I was able to set a unique ID in the attributes setting, that I could match knowing this unique ID in a wrapper component (or some other type of stateful object which is used to generate the vgplot. I would match the unique ID with any source objects that match this ID in the Selection object's source arrays, [object]._value.active as well as all the index references [object]._value[x] (if any).

For discussion - the name() attribute is not listed in…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Unemyr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant