tooltip:{
        trigger:'axis',
        formatter:function(a){
          var res = '';
          var nameList = a;
          for(var i=0; i<a.length; i++){
            if(nameList[i].data != undefined){
              res += nameList[i].seriesName+ ':'+nameList[i].data+'%'+'<br>'
            }
          }
          res = res.split('<br>');
          return res[0]+'<br>'+res[1];
        }
      }

echarts 折线图的鼠标移动上去小点显示样式修改

tooltip:{
trigger:'axis',
formatter:function(a){
var res = '';
var nameList = a;
for(var i=0; i<a.length; i++){
if(nameList[i].data != undefined){
res += nameList[i].seriesName+ ':'+nameList[i].data+'%'+'<br>'
}
}
res = res.split('<br>');
return res[0]+'<br>'+res[1];
}
}

相关文章:

  • 2021-12-29
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案