miany w tooltipie
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user