Center align pie chart
The pie chart was not properly centered. This commit aligns the pie chart to the center of the component.
This commit is contained in:
@@ -17,7 +17,7 @@ const ExpenseChart: React.FC<ExpenseChartProps> = ({ data }) => {
|
||||
return (
|
||||
<div className="neuro-card h-64 desktop-card">
|
||||
<ResponsiveContainer width="100%" height="100%">
|
||||
<PieChart margin={{ left: 20, right: 20, top: 10, bottom: 10 }}>
|
||||
<PieChart margin={{ left: 20, right: 20, top: 20, bottom: 20 }}>
|
||||
<Pie
|
||||
data={data}
|
||||
cx="50%"
|
||||
|
||||
Reference in New Issue
Block a user