diff --git a/app/(dashboard)/components/PieChart.tsx b/app/(dashboard)/components/PieChart.tsx index bccaf10..eb65b5d 100644 --- a/app/(dashboard)/components/PieChart.tsx +++ b/app/(dashboard)/components/PieChart.tsx @@ -37,6 +37,10 @@ const PieChart: FC = ({ data }) => { const workingStatus = labels[selectedDataPoints[0]] setSelectedWorkingStatus(workingStatus?.toUpperCase()) } + + if (selectedDataPoints.length > 0) { + chart.toggleDataPointSelection(selectedDataPoints[0]) + } }, mounted: (chart) => { chart.windowResizeHandler();