fix: correct TypeScript error in PieChart label prop
This commit is contained in:
parent
870e8630a1
commit
e867cbd402
|
|
@ -296,7 +296,7 @@ export default function AdminDashboardAdvanced() {
|
|||
cx="50%"
|
||||
cy="50%"
|
||||
labelLine={false}
|
||||
label={({ name, percentage }) => `${name}: ${percentage}%`}
|
||||
label={(entry: any) => `${entry.name}: ${entry.percentage}%`}
|
||||
outerRadius={80}
|
||||
fill="#8884d8"
|
||||
dataKey="value"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user