mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
Update PieChart.tsx
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user