@fluentui/react-charting 5.18.18 → 5.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -201,11 +201,6 @@ export interface ILegendsProps {
201
201
  */
202
202
  overflowText?: string;
203
203
 
204
- /**
205
- * Prop that takes the active legend
206
- */
207
- selectedLegend?: string;
208
-
209
204
  /**
210
205
  * prop that decides if legends are focusable
211
206
  * @default true
@@ -220,10 +215,28 @@ export interface ILegendsProps {
220
215
 
221
216
  /**
222
217
  * Defines the function that is executed upon hiding of hover card
223
- * make sure to send prop when the prop is canSelectMultipleLegends is set to ture
224
- * and empty the selecetd state legends
218
+ * make sure to send prop when the prop is canSelectMultipleLegends is set to true
219
+ * and empty the selected state legends
225
220
  */
226
221
  onLegendHoverCardLeave?: VoidFunction;
222
+
223
+ /**
224
+ * Callback issued when the selected option changes.
225
+ */
226
+ onChange?: (selectedLegends: string[], event: React.MouseEvent<HTMLButtonElement>, currentLegend?: ILegend) => void;
227
+
228
+ /**
229
+ * Keys (title) that will be initially used to set selected items.
230
+ * This prop is used for multiSelect scenarios.
231
+ * In other cases, defaultSelectedLegend should be used.
232
+ */
233
+ defaultSelectedLegends?: string[];
234
+
235
+ /**
236
+ * Key that will be initially used to set selected item.
237
+ * This prop is used for singleSelect scenarios.
238
+ */
239
+ defaultSelectedLegend?: string;
227
240
  }
228
241
 
229
242
  /**