Skip to content

Commit

Permalink
fix: centered the bar chart component
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeetgaikwad committed Jan 27, 2024
1 parent 2335a6f commit 97372be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/FinancialSummary/BarChartComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ const BarChartComponent = () => {

</div>
{/* Recharts BarChart */}
<BarChart width={barWidth} height={barHeight} data={chartData}>
<div className='flex justify-center'>
<BarChart width={barWidth} height={barHeight} data={chartData}>
<CartesianGrid strokeDasharray="3 3" />
<YAxis tickFormatter={(value) => `$${value}`} />
<Tooltip content={<CustomTooltip />} />
Expand All @@ -213,6 +214,7 @@ const BarChartComponent = () => {
}}
/>
</BarChart>
</div>
{windowWidth < 900 ? <ExpensesCard data={Expenses} /> : null}
</div>
</div>
Expand Down

0 comments on commit 97372be

Please sign in to comment.