diff --git a/src/components/Dashboard/Dashboard.jsx b/src/components/Dashboard/Dashboard.jsx
index 8f2e7a37..64737ebb 100644
--- a/src/components/Dashboard/Dashboard.jsx
+++ b/src/components/Dashboard/Dashboard.jsx
@@ -39,7 +39,7 @@ const Dashboard = () => {
-
diff --git a/src/components/Dashboard/ExpenseAnalysis.jsx b/src/components/Dashboard/ExpenseAnalysis.jsx
index 50528055..3312abdf 100644
--- a/src/components/Dashboard/ExpenseAnalysis.jsx
+++ b/src/components/Dashboard/ExpenseAnalysis.jsx
@@ -54,14 +54,32 @@ const ExpenseAnalysis = () => {
},
},
},
- responsive: [
- {
- breakpoint: 576, // mobile breakpoint
- options: {
- chart: { width: "100%" },
+ responsive: [
+ {
+ breakpoint: 1200,
+ options: {
+ chart: { width: "100%", height: 350 },
+ legend: { position: "bottom" },
+ },
+ },
+ {
+ breakpoint: 992,
+ options: {
+ chart: { width: "100%", height: 300 },
+ dataLabels: { style: { fontSize: "11px" } },
+ },
+ },
+ {
+ breakpoint: 576,
+ options: {
+ chart: { width: "100%", height: 250 },
+ legend: { fontSize: "10px" },
+ plotOptions: {
+ pie: { donut: { size: "65%" } },
},
},
- ],
+ },
+ ],
};
return (
@@ -69,11 +87,11 @@ const ExpenseAnalysis = () => {
{/* Header */}
-
Expense Breakdown
+
Expense Breakdown
Category Wise Expense Breakdown
-
+
@@ -92,7 +110,7 @@ const ExpenseAnalysis = () => {
)}
{!isLoading && report.length === 0 && (
-
No data found
+
No data found
)}
{!isLoading && report.length > 0 && (
diff --git a/src/components/Dashboard/ExpenseStatus.jsx b/src/components/Dashboard/ExpenseStatus.jsx
index 3076c0c4..82e49e9c 100644
--- a/src/components/Dashboard/ExpenseStatus.jsx
+++ b/src/components/Dashboard/ExpenseStatus.jsx
@@ -43,7 +43,7 @@ const ExpenseStatus = () => {
-
+
{[
{
title: "Pending Payment",
diff --git a/src/components/common/DatePicker.jsx b/src/components/common/DatePicker.jsx
index 6b73dc36..d00b6329 100644
--- a/src/components/common/DatePicker.jsx
+++ b/src/components/common/DatePicker.jsx
@@ -47,7 +47,7 @@ const DatePicker = ({
const displayValue = value ? flatpickr.formatDate(new Date(value), "d-m-Y") : "";
return (
-