From e36e5df635d59dbd238eaa63c787f0ff8c864827 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 6 Jan 2023 20:00:06 +0900 Subject: [PATCH] chore(client): tweak charts --- packages/frontend/src/components/MkChart.vue | 10 ++++------ packages/frontend/src/components/MkHeatmap.vue | 5 +++-- .../frontend/src/components/MkRetentionHeatmap.vue | 1 - .../frontend/src/pages/admin/overview.active-users.vue | 6 ------ .../frontend/src/pages/admin/overview.ap-requests.vue | 6 ------ packages/frontend/src/pages/user/activity.heatmap.vue | 5 +++-- packages/frontend/src/pages/user/activity.pv.vue | 10 ++++------ 7 files changed, 14 insertions(+), 29 deletions(-) diff --git a/packages/frontend/src/components/MkChart.vue b/packages/frontend/src/components/MkChart.vue index ea28cfa794..57efda44b1 100644 --- a/packages/frontend/src/components/MkChart.vue +++ b/packages/frontend/src/components/MkChart.vue @@ -16,7 +16,6 @@ */ import { onMounted, ref, shallowRef, watch, PropType, onUnmounted } from 'vue'; import { Chart } from 'chart.js'; -import { enUS } from 'date-fns/locale'; import gradient from 'chartjs-plugin-gradient'; import * as os from '@/os'; import { defaultStore } from '@/store'; @@ -186,6 +185,10 @@ const render = () => { time: { stepSize: 1, unit: props.span === 'day' ? 'month' : 'day', + displayFormats: { + day: 'M/d', + month: 'Y/M', + }, }, grid: { }, @@ -194,11 +197,6 @@ const render = () => { maxRotation: 0, autoSkipPadding: 16, }, - adapters: { - date: { - locale: enUS, - }, - }, min: getDate(props.limit).getTime(), }, y: { diff --git a/packages/frontend/src/components/MkHeatmap.vue b/packages/frontend/src/components/MkHeatmap.vue index ec7f49beee..f222fca9a1 100644 --- a/packages/frontend/src/components/MkHeatmap.vue +++ b/packages/frontend/src/components/MkHeatmap.vue @@ -10,7 +10,6 @@