先看效果

echart  tooltip问题(鼠标放上去显示所有和显示当个)echart  tooltip问题(鼠标放上去显示所有和显示当个)

 

两种方式只要修改一下 echat option里面tooltip的属性即可

 第一种:

        tooltip : {
            show: true,
             trigger: 'item'
//            trigger: 'axis',
//            axisPointer: {
//                type: 'cross',
//                label: {
//                    backgroundColor: '#6a7985'
//                }
//            }
        },

第二种就是把注释去掉

 

其实查看文档就知道,起作用的就是这个trigger

echart  tooltip问题(鼠标放上去显示所有和显示当个)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-08-15
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2021-05-18
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-05-22
相关资源
相似解决方案