From 3d9f58b18890235783e44ac1c93f24812ef2e768 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 27 Dec 2022 11:23:20 +0900 Subject: [PATCH] :art: --- packages/client/src/pages/admin/overview.heatmap.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/client/src/pages/admin/overview.heatmap.vue b/packages/client/src/pages/admin/overview.heatmap.vue index db70796c5..0bf1fa0a4 100644 --- a/packages/client/src/pages/admin/overview.heatmap.vue +++ b/packages/client/src/pages/admin/overview.heatmap.vue @@ -201,12 +201,13 @@ async function renderChart() { tooltip: { enabled: false, callbacks: { - title() { - return ''; + title(context) { + const v = context[0].dataset.data[context[0].dataIndex]; + return v.d; }, label(context) { const v = context.dataset.data[context.dataIndex]; - return ['d: ' + v.d, 'v: ' + v.v.toFixed(2)]; + return ['Active: ' + v.v]; }, }, //mode: 'index',