You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want a legend where my users can click on an item to remove it from a chart. Doing show should gray out just this legend item. The Legend component seems to only support either all categories as being active or a single one as being active. I'd like to be able to pass a list of what categories are active.
I'm happy to control the logic for which categories are active as well as remove from the set of categories passed to my chart, but currently there is no way to mark a single category as inactive in the legend.
What does the proposed API look like?
I should be able to pass another prop. Either inactiveCategories or activeCategories. activeLegend would no longer be necessary with this change.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
I want a legend where my users can click on an item to remove it from a chart. Doing show should gray out just this legend item. The
Legend
component seems to only support either all categories as being active or a single one as being active. I'd like to be able to pass a list of what categories are active.I'm happy to control the logic for which categories are active as well as remove from the set of categories passed to my chart, but currently there is no way to mark a single category as inactive in the legend.
What does the proposed API look like?
I should be able to pass another prop. Either
inactiveCategories
oractiveCategories
.activeLegend
would no longer be necessary with this change.The text was updated successfully, but these errors were encountered: