Remove unnecessary chart elements
Removes label lines from pie charts and percentage display from payment method chart.
This commit is contained in:
@@ -26,7 +26,7 @@ const ExpenseChart: React.FC<ExpenseChartProps> = ({ data }) => {
|
||||
outerRadius={60}
|
||||
paddingAngle={5}
|
||||
dataKey="value"
|
||||
labelLine={true}
|
||||
labelLine={false}
|
||||
label={({ name, percent }) => (
|
||||
`${name} ${(percent * 100).toFixed(0)}%`
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user