update tooltip

This commit is contained in:
MuslemRahimi 2025-03-06 01:50:44 +01:00
parent 6c5c949ca2
commit 7a0027ba39

View File

@ -97,11 +97,11 @@
}, },
borderRadius: 4, borderRadius: 4,
formatter: function () { formatter: function () {
let tooltipContent = `<span class="text-white m-auto text-black text-[1rem] font-[501]"></span><br>`; let tooltipContent = "";
this.points.forEach((point) => { this.points.forEach((point) => {
tooltipContent += ` tooltipContent += `
<span class="text-white font-semibold text-sm">${point.series.name}:</span> <span class="text-white font-semibold text-sm">${point.key}:</span>
<span class="text-white font-normal text-sm" style="color:${point.color}">${point.y}</span><br> <span class="text-white font-normal text-sm" >${point.y}</span><br>
`; `;
}); });
return tooltipContent; return tooltipContent;