update tooltip
This commit is contained in:
parent
6c5c949ca2
commit
7a0027ba39
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user