diff --git a/src/components/Charts/payments-overview/chart.tsx b/src/components/Charts/payments-overview/chart.tsx index b1c8a8c..8b9d7ce 100644 --- a/src/components/Charts/payments-overview/chart.tsx +++ b/src/components/Charts/payments-overview/chart.tsx @@ -24,12 +24,13 @@ export function PaymentsOverviewChart({ data }: PropsType) { }, colors: ["#5750F1", "#0ABEF9"], chart: { - height: 310, type: "area", toolbar: { show: false, }, fontFamily: "inherit", + redrawOnParentResize: true, + redrawOnWindowResize: true, }, fill: { gradient: { @@ -61,6 +62,9 @@ export function PaymentsOverviewChart({ data }: PropsType) { }, grid: { strokeDashArray: 5, + padding: { + right: 8, + }, yaxis: { lines: { show: true, @@ -82,11 +86,18 @@ export function PaymentsOverviewChart({ data }: PropsType) { axisTicks: { show: false, }, + labels: { + rotate: -45, + rotateAlways: false, + hideOverlappingLabels: true, + ...(isMobile && { maxHeight: 60 }), + }, + tickAmount: isMobile ? 4 : undefined, }, }; return ( -
+
);