Update PieChart.tsx

This commit is contained in:
Ichsan Kurniawan
2026-01-29 14:37:23 +07:00
parent 36b5b07d28
commit fc4e56eaef
+4
View File
@@ -37,6 +37,10 @@ const PieChart: FC<Props> = ({ data }) => {
const workingStatus = labels[selectedDataPoints[0]]
setSelectedWorkingStatus(workingStatus?.toUpperCase())
}
if (selectedDataPoints.length > 0) {
chart.toggleDataPointSelection(selectedDataPoints[0])
}
},
mounted: (chart) => {
chart.windowResizeHandler();