diff options
author | bobzel <zzzman@gmail.com> | 2024-05-15 00:20:59 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-05-15 00:20:59 -0400 |
commit | 0b1d434ad7f0d057456631ac786ed338c84a7f41 (patch) | |
tree | e2e17205f34cce544d3c13b6604b4a752efbb89f /src | |
parent | d6149b71d54fee2a303363c8342d51fdfdac3bb2 (diff) |
simplified pieChart text
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/DataVizBox/components/PieChart.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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<PieChartProps> { 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]!) : ''; }); }; |