From 0b1d434ad7f0d057456631ac786ed338c84a7f41 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 15 May 2024 00:20:59 -0400 Subject: simplified pieChart text --- src/client/views/nodes/DataVizBox/components/PieChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/nodes/DataVizBox/components/PieChart.tsx b/src/client/views/nodes/DataVizBox/components/PieChart.tsx index 2bb8df9e5..d5410c1aa 100644 --- a/src/client/views/nodes/DataVizBox/components/PieChart.tsx +++ b/src/client/views/nodes/DataVizBox/components/PieChart.tsx @@ -367,7 +367,7 @@ export class PieChart extends ObservableReactComponent { dataPoint = pieDataSet[possibleDataPointVals.indexOf(possibleDataPoints[trackDuplicates[d.data.toString()]])]; trackDuplicates[d.data.toString()] = trackDuplicates[d.data.toString()] + 1; } - return dataPoint ? dataPoint[percentField]! + (!descriptionField ? '' : ' - ' + dataPoint[descriptionField])! : ''; + return dataPoint ? (descriptionField ? dataPoint[descriptionField] : dataPoint[percentField]!) : ''; }); }; -- cgit v1.2.3-70-g09d2