Replies: 2 comments 3 replies
-
@NewFuture Could you describe more about how you plan to use the onChangedEvent for legends. Agree that we could make it more modular by introducing few events like onChanged, onDeselect, onMultiSelect etc. |
Beta Was this translation helpful? Give feedback.
3 replies
-
@AtishayMsft I draft a PR implemented the |
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
-
I'm trying to use the Legends with third-party components.
and looking for the example to handle the selection state.
I found some similar codes with the logic to find the selectedItems in our Chart Components, like this
fluentui/packages/react-charting/src/components/LineChart/LineChart.base.tsx
Line 1255 in 6384a93
Why not expose an
onChangedEvent
in the<Legends />
component to tell the selected items, as we already do this in theonClick
?fluentui/packages/react-charting/src/components/Legends/Legends.base.tsx
Line 195 in 6384a93
Beta Was this translation helpful? Give feedback.
All reactions