This commit is contained in:
syuilo 2022-12-27 11:23:20 +09:00
parent 40a16a47de
commit 3d9f58b188

View File

@ -201,12 +201,13 @@ async function renderChart() {
tooltip: { tooltip: {
enabled: false, enabled: false,
callbacks: { callbacks: {
title() { title(context) {
return ''; const v = context[0].dataset.data[context[0].dataIndex];
return v.d;
}, },
label(context) { label(context) {
const v = context.dataset.data[context.dataIndex]; const v = context.dataset.data[context.dataIndex];
return ['d: ' + v.d, 'v: ' + v.v.toFixed(2)]; return ['Active: ' + v.v];
}, },
}, },
//mode: 'index', //mode: 'index',