Skip to content

Commit

Permalink
Fixing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ankityadav4 committed Oct 12, 2023
1 parent 5475631 commit 0e712cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ export class AreaChartBase extends React.Component<IAreaChartProps, IAreaChartSt
'data-is-focusable': true,
xAxisCalloutAccessibilityData: this.state.xAxisCalloutAccessibilityData,
...this.props.calloutProps,
descriptionMessage: this.state.YValueHover!.length > 1 ? 'Shown Y values are cumulative' : undefined,
};
return (
<CartesianChart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ export interface ICartesianChartProps {
/**
* Callout customization props
*/
calloutProps?: Partial<ICalloutProps>;
calloutProps?: Partial<ICalloutProps> & {
descriptionMessage?: string;
};

/**
* props for the svg; use this to include aria-* or other attributes on the tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class AreaChartDataChangeExample extends React.Component<{}, IAreaChartBa
allowFocusOnLegends: true,
}}
enableReflow={true}
calloutProps={{ descriptionMessage: 'Shown Y values are cumulative' }}
/>
<DefaultButton text="Change Ydata" onClick={this._changeData} />
<DefaultButton text="Change Xdata" onClick={this._changeXData} />
Expand Down

0 comments on commit 0e712cb

Please sign in to comment.