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 }) }
标签:index,状高亮,myChart,dispatchAction,vue,dataIndex,type,echarts 来源: https://www.cnblogs.com/houBlogs/p/15394269.html