feat:液体图中浮标显示错误修复
This commit is contained in:
@@ -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%',
|
||||
|
||||
Reference in New Issue
Block a user