From c05820f61b79cb0647f92ea72191f3001edcc6da Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Thu, 22 Oct 2026 04:59:14 +0200 Subject: [PATCH] Adjust chart x-axis legend placement Move the date legend inward to align with the y-axis label on overview and user detail charts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- frontend/src/features/stats/Stats.tsx | 3 ++- frontend/src/features/users/UserDetail.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/stats/Stats.tsx b/frontend/src/features/stats/Stats.tsx index 171a2c5..3381780 100644 --- a/frontend/src/features/stats/Stats.tsx +++ b/frontend/src/features/stats/Stats.tsx @@ -44,7 +44,8 @@ const Stats = () => { axisBottom={{ format: "%b %Y", legend: "Date", - legendOffset: -40, + legendPosition: "middle", + legendOffset: -20, }} useMesh pointLabelYOffset={0} diff --git a/frontend/src/features/users/UserDetail.tsx b/frontend/src/features/users/UserDetail.tsx index 2a86cb0..5d11f04 100644 --- a/frontend/src/features/users/UserDetail.tsx +++ b/frontend/src/features/users/UserDetail.tsx @@ -85,7 +85,8 @@ const UserDetail = () => { axisBottom={{ format: "%b %Y", legend: "Date", - legendOffset: -12, + legendPosition: "middle", + legendOffset: -20, }} useMesh pointLabelYOffset={0}