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

This commit is contained in:
zhongzm committed 2025-08-08 19:53:36 +08:00
1 parent cd495ab817
commit a7c2d25c5d
1 file changed
+4 -1
@@ -45,7 +45,10 @@ function getColorByValue(value: number) {
const optionData: any = { const optionData: any = {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: '{b}: {c}%', // formatter: '{a}: {c}%',
formatter: (params: any) => {
return `${params.seriesName}: ${(params.value * 100).toFixed(2)}%`;
},
}, },
grid: { grid: {
top: '10%', top: '10%',