charts, legend bottom

This commit is contained in:
Mateusz Gruszczyński
2025-07-31 23:15:42 +02:00
parent 085743c7fb
commit 1049a69cb8

View File

@@ -74,20 +74,6 @@ document.addEventListener("DOMContentLoaded", function () {
options: {
responsive: true,
scales: { y: { beginAtZero: true } }
plugins: {
tooltip: {
mode: 'index',
intersect: false,
callbacks: {
label: function (context) {
const value = context.raw;
if (!value) return null;
return `${context.dataset.label}: ${value}`;
}
}
},
legend: { position: 'bottom' }
},
}
});
}