直接加入下面的方法即可:

tooltip: {
trigger: 'axis',
formatter: function(params) {
var result = params[0].name + "<br>";
params.forEach(function(item) {
if (item.value) {
result += item.marker + " " + item.seriesName + " : " + item.value + "%</br>";
} else {
result += item.marker + " " + item.seriesName + " : - </br>";
}
});
return result;
},
backgroundColor: '#181f86',
borderWidth: 0,
textStyle: {
color: '#fff'
},
axisPointer: {
type: 'shadow'
},
},

 

相关文章:

  • 2022-01-14
  • 2021-12-27
  • 2021-12-15
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-18
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案