From 6a992b6982a7a2012ef6067e5e55b93f81ae744b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 7 Jan 2023 14:10:01 +0900 Subject: [PATCH] fix chart rendering --- .../frontend/src/pages/admin/overview.active-users.vue | 4 ++++ .../frontend/src/pages/admin/overview.ap-requests.vue | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/pages/admin/overview.active-users.vue b/packages/frontend/src/pages/admin/overview.active-users.vue index e20b8221cf..3ec7694f26 100644 --- a/packages/frontend/src/pages/admin/overview.active-users.vue +++ b/packages/frontend/src/pages/admin/overview.active-users.vue @@ -104,6 +104,10 @@ async function renderChart() { time: { stepSize: 1, unit: 'day', + displayFormats: { + day: 'M/d', + month: 'Y/M', + }, }, grid: { display: false, diff --git a/packages/frontend/src/pages/admin/overview.ap-requests.vue b/packages/frontend/src/pages/admin/overview.ap-requests.vue index 9bc08ef6b6..efb335fff1 100644 --- a/packages/frontend/src/pages/admin/overview.ap-requests.vue +++ b/packages/frontend/src/pages/admin/overview.ap-requests.vue @@ -214,6 +214,10 @@ onMounted(async () => { time: { stepSize: 1, unit: 'day', + displayFormats: { + day: 'M/d', + month: 'Y/M', + }, }, grid: { display: false, @@ -223,11 +227,6 @@ onMounted(async () => { maxRotation: 0, autoSkipPadding: 16, }, - adapters: { - date: { - locale: enUS, - }, - }, min: getDate(chartLimit).getTime(), }, y: {