vue 调用echarts的饼状高亮

<div  v-for='(item,index) in datalist' @mouseover='chartMouseover(index)' @mouseleave='chartMouseLeave(index)'>
</div>

 

chartMouseover(index) {
                this.myChart.dispatchAction({
                    type: 'highlight',
                    dataIndex: index
                })
            },
chartMouseLeave(index) {
                this.myChart.dispatchAction({
                    type: 'downplay',
                    dataIndex: index
                })
            }

  

posted @ 2021-10-11 17:27  _houjie  阅读(96)  评论(0编辑  收藏  举报