aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/PieChart.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/PieChart.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/components/PieChart.tsx2
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 364a5c2ff..3819c2f82 100644
--- a/src/client/views/nodes/DataVizBox/components/PieChart.tsx
+++ b/src/client/views/nodes/DataVizBox/components/PieChart.tsx
@@ -103,7 +103,7 @@ export class PieChart extends ObservableReactComponent<PieChartProps> {
const selectedDataBars = StrListCast(this._props.layoutDoc.dataViz_pie_selectedData)
svg.selectAll('path').attr('class', (d: any) => {
let selected = false;
- selectedDataBars.map(eachSelectedData => {
+ selectedDataBars.forEach(eachSelectedData => {
if (d[key]==eachSelectedData) selected = true;
})
if (selected){