Toggle the inclusion of different series from chart through Legends #9698
VikrantRamesh
started this conversation in
General
Replies: 1 comment
-
will not update reactively since js is not reactive. You have to instead explicitly create a signal/param for the filtered value and set that via the Vega View API if you want a legend that is external to the chart. If you use a native legend, you might be able to directly depend on the signal/param the legend defines. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a Custom Legend that is rendered in JS and I am trying to introduce interactivity through vega signals. I want the following interactive behaviour:
Example (Expected Output):

What I tried:
I added a filter on the data source to filter out that particular field's color. But this doesnt re-render the chart as expected as it just hides the visibility of the series from the chart. I am looking for any other possible solution for this issue.
output:

Beta Was this translation helpful? Give feedback.
All reactions