diff --git a/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx b/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx index 25809f9715fbac..e5da540d81bf4e 100644 --- a/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx +++ b/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx @@ -6,7 +6,6 @@ import { getStyles } from './Arc.styles'; import { IChartDataPoint } from '../index'; import { IArcProps, IArcStyles } from './index'; import { wrapTextInsideDonut } from '../../../utilities/index'; -import { IProcessedStyleSet } from '../../../Styling'; export interface IArcState { isCalloutVisible?: boolean; @@ -21,7 +20,6 @@ export class Arc extends React.Component { public state: {} = {}; - private _classNames: IProcessedStyleSet; private currentRef = React.createRef(); public static getDerivedStateFromProps(nextProps: Readonly): Partial | null { @@ -40,7 +38,7 @@ export class Arc extends React.Component { public render(): JSX.Element { const { arc, href, focusedArcId } = this.props; const getClassNames = classNamesFunction(); - this._classNames = getClassNames(getStyles, { + const classNames = getClassNames(getStyles, { color: this.props.color, href: href!, theme: this.props.theme!, @@ -52,13 +50,13 @@ export class Arc extends React.Component { return ( {!!focusedArcId && focusedArcId === id && ( - + )} { aria-label={this._getAriaLabel()} role="img" /> - - - {this.props.valueInsideDonut} + + + {this.props.valueInsideDonut!}