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