focus触发时 中间总数隐藏**
initChart(data) {
const echartData = [
// 占用端口数量
{value: data.usedCount, name: this.language.facility.occupiedPorts},
// 空闲端口数量
{value: data.unusedCount, name: this.language.facility.freePorts},
// 异常端口数量
{value: data.exceptionCount, name: this.language.facility.exceptionPorts},
// 预占端口数量
{value: data.advanceCount, name: this.language.facility.PreemptPorts},
// 虚占端口数量
{value: data.virtualCount, name: this.language.facility.phantomPorts},
];
this.eChartOption = {
title: {
// 端口总数
text: this.language.facility.totalPorts,
left: ‘center’,
top: ‘30%’,
padding: [24, 0],
textStyle: {
color: ‘#bfbfbf’,
fontSize: 15,
fontStyle: ‘bold’,
align: ‘center’,
}
},
tooltip: {
show: true,
trigger: ‘item’,
formatter: ‘{b}: {c} ({