Skip to content
Snippets Groups Projects
Commit 3d9f58b1 authored by syuilo's avatar syuilo
Browse files

🎨

parent 40a16a47
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment