Fix expense chart rendering

The expense chart was not rendering correctly, with the left side of the pie chart being cut off. This commit adjusts the chart's responsive container to ensure the entire chart is visible.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-21 12:03:19 +00:00
parent 34eafdb14d
commit ad6e7ebd4b

View File

@@ -17,7 +17,7 @@ const ExpenseChart: React.FC<ExpenseChartProps> = ({ data }) => {
return ( return (
<div className="neuro-card h-64 desktop-card"> <div className="neuro-card h-64 desktop-card">
<ResponsiveContainer width="100%" height="100%"> <ResponsiveContainer width="100%" height="100%">
<PieChart> <PieChart margin={{ left: 20, right: 20, top: 10, bottom: 10 }}>
<Pie <Pie
data={data} data={data}
cx="50%" cx="50%"