Reverted to edit edt-a41ccf6f-28b9-4a12-b13f-4d1674c2ef41: "Fix expense chart labels
The labels on the expense chart were missing. This commit fixes the issue by ensuring the labels are displayed correctly."
This commit is contained in:
@@ -27,10 +27,7 @@ const ExpenseChart: React.FC<ExpenseChartProps> = ({ data }) => {
|
||||
paddingAngle={5}
|
||||
dataKey="value"
|
||||
labelLine={true}
|
||||
label={({ name, percent }) => (
|
||||
`${name} ${(percent * 100).toFixed(0)}%`
|
||||
)}
|
||||
fontSize={12}
|
||||
label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
||||
>
|
||||
{data.map((entry, index) => (
|
||||
<Cell key={`cell-${index}`} fill={entry.color} />
|
||||
|
||||
Reference in New Issue
Block a user