Skip to content

Commit

Permalink
Conditional for valueInsideDonut (microsoft#14093)
Browse files Browse the repository at this point in the history
* Updating valueInsideDonut to be set to yAxisCalloutData if the value is defined

* Change files
  • Loading branch information
hki-237 committed Jul 20, 2020
1 parent 3a9feb3 commit 1c3012b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions change/@uifabric-charting-2020-07-19-21-44-37-master.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Updating valueInsideDonut to be set to yAxisCalloutData if the value is defined",
"packageName": "@uifabric/charting",
"email": "57419611+hki-237@users.noreply.github.com",
"dependentChangeType": "patch",
"date": "2020-07-20T04:44:37.882Z"
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class DonutChartBase extends React.Component<IDonutChartProps, IDonutChar
let legendValue = valueInsideDonut;
data!.map((point: IChartDataPoint, index: number) => {
if (point.legend === this.state.activeLegend) {
legendValue = point.data!;
legendValue = point.yAxisCalloutData ? point.yAxisCalloutData : point.data!;
}
return;
});
Expand Down

0 comments on commit 1c3012b

Please sign in to comment.