fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

react-charting: Add controlled selection to Legends component

Open insaneinside opened this issue 4 months ago • 7 comments

This PR adds controlled selection to the Legends component in @fluentui/react-charting.

With controlled selection, we allow the parent component to add additional integrations that interact with the selection state (for example, a button that selects all items, or a separate control that allows selecting grouped subsets of items).

Previous Behavior

Legends component allows setting initial selection via props, but does not allow fully-controlled selection behavior.

New Behavior

Legends component now supports fully-controlled selection behavior.

Related Issue(s)

None.

insaneinside avatar Sep 24 '24 21:09 insaneinside