diff --git a/static/js/user_expenses.js b/static/js/user_expenses.js index b08592d..d9ea641 100644 --- a/static/js/user_expenses.js +++ b/static/js/user_expenses.js @@ -39,7 +39,17 @@ document.addEventListener("DOMContentLoaded", function () { options: { responsive: true, plugins: { - tooltip: { mode: 'index', intersect: false }, + tooltip: { + mode: 'index', + intersect: false, + callbacks: { + label: function(context) { + const value = context.raw; + if (!value) return null; + return `${context.dataset.label}: ${value}`; + } + } + }, legend: { position: 'top', labels: {