diff --git a/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx b/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx index c1f2122dd9bae..50994900c88be 100644 --- a/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx +++ b/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx @@ -259,17 +259,18 @@ export class DonutChartBase extends React.Component ); return legends; } - private _onLegendSelectionChange = ( + private _onLegendSelectionChange( selectedLegends: string[], event: React.MouseEvent, currentLegend?: ILegend, - ) => { + ): void { if (this.props.legendProps?.canSelectMultipleLegends) { this.setState({ selectedLegends }); } else { @@ -278,7 +279,7 @@ export class DonutChartBase extends React.Component { return this._getHighlightedLegend().indexOf(legend) > -1; diff --git a/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap b/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap index 1daf5c828b254..376f250005375 100644 --- a/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap +++ b/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap @@ -125,6 +125,23 @@ exports[`DonutChart - mouse events Should render callout correctly on mouseover role="img" /> + + 20,000 + @@ -814,6 +831,23 @@ exports[`DonutChart - mouse events Should render customized callout on mouseover role="img" /> + + 20,000 + @@ -1877,22 +1911,6 @@ exports[`DonutChart snapShot testing Should render arc labels 1`] = ` onMouseOver={[Function]} role="img" /> - - 20.0k - - - 39.0k - - - 45.0k - @@ -2443,22 +2429,6 @@ exports[`DonutChart snapShot testing Should render arc labels in percentage form onMouseOver={[Function]} role="img" /> - - 19% - - - 38% - - - 43% - diff --git a/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChartRTL.test.tsx.snap b/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChartRTL.test.tsx.snap index 5dab0bf43a88d..64796dabf922a 100644 --- a/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChartRTL.test.tsx.snap +++ b/packages/charts/react-charting/src/components/DonutChart/__snapshots__/DonutChartRTL.test.tsx.snap @@ -636,498 +636,4 @@ exports[`Donut chart interactions Should hide callout on mouse leave 1`] = ` `; -exports[`Donut chart interactions Should reflect theme change 1`] = ` -
-
-
-
-
- - - - - - - - - - - - - -
-
- -
-
-
-
-
-
-
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
-
-
-`; +exports[`Donut chart interactions Should reflect theme change 1`] = `
`;