Increase pie chart size
Make the pie charts in ExpenseChart and PaymentMethodChart components slightly larger.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import NavBar from '@/components/NavBar';
|
||||
import ExpenseChart from '@/components/ExpenseChart';
|
||||
@@ -145,14 +144,14 @@ const Analytics = () => {
|
||||
|
||||
{/* Category Pie Chart */}
|
||||
<h2 className="text-lg font-semibold mb-3">카테고리별 지출</h2>
|
||||
<div className="w-full">
|
||||
<div className="w-full mb-8">
|
||||
{expenseData.some(item => item.value > 0) ? <ExpenseChart data={expenseData} /> : <div className="neuro-card h-52 w-full flex items-center justify-center text-gray-400">
|
||||
<p>데이터가 없습니다</p>
|
||||
</div>}
|
||||
</div>
|
||||
|
||||
{/* 결제 방법 차트 추가 */}
|
||||
<h2 className="text-lg font-semibold mb-3 mt-6">결제 방법별 지출</h2>
|
||||
<h2 className="text-lg font-semibold mb-3">결제 방법별 지출</h2>
|
||||
<PaymentMethodChart
|
||||
data={paymentMethodData}
|
||||
isEmpty={!hasPaymentData}
|
||||
|
||||
Reference in New Issue
Block a user