xianhuiwang

echarts radar 一些会用到了的功能记录

点击雷达图小标题进行相应操作

// options中添加,坐标轴的标签是否响应和触发鼠标事件,默认不响应。
 radar:{
     triggerEvent: true
  }

 // 添加监听事件, 点击雷达图标题
    this.radarEchart.on(\'click\', function (params) {
        alert(params.name)
        if (params === \'实线\') {
          console.log(1)
        }
      })    

 

点和线的控制

 

  symbol: \'circle\',     //设定形状为实心圆点
  symbolSize: 5,   //设定实心点的大小
  itemStyle: { 
      normal: {
      color: \'#F9713C\' // 点的颜色
      }
   },
  lineStyle: {
    color: \'rgba(1, 1, 1, 0)\', //线的颜色
   },

 

发表于 2019-09-24 16:27  哎哟喂勒  阅读(747)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-10-04
  • 2022-01-13
  • 2021-08-13
  • 2021-09-16
  • 2021-09-21
  • 2021-12-10
  • 2022-02-06
猜你喜欢
  • 2022-12-23
  • 2021-08-21
  • 2021-11-19
  • 2021-11-19
  • 2021-12-25
  • 2022-12-23
  • 2021-07-31
相关资源
相似解决方案