feat:液体图中浮标显示错误修复

This commit is contained in:
zhongzm
2025-08-08 19:53:36 +08:00
parent cd495ab817
commit a7c2d25c5d

View File

@@ -45,7 +45,10 @@ function getColorByValue(value: number) {
const optionData: any = {
tooltip: {
trigger: 'item',
formatter: '{b}: {c}%',
// formatter: '{a}: {c}%',
formatter: (params: any) => {
return `${params.seriesName}: ${(params.value * 100).toFixed(2)}%`;
},
},
grid: {
top: '10%',