tooltip: {
trigger: 'axis',
formatter(params) {
let res = params[0].name;
// eslint-disable-next-line no-plusplus
for (let i = 0; i < params.length; i++) {
res += `<br>${params[i].marker}${params[i].seriesName}:${params[i].data}套`;
}
return res;
},
},
tooltip: {
trigger: 'item',
formatter(param) {
return `${param.marker} ${param.name}:${param.value}%`;
},
},
网友评论