let chooseIndex = 0;//默認選中高亮模塊索引 現在是默認第一條
that.myChart = echarts.init(document.getElementById(that.indexAll.id));
that.myChart.clear();
that.myChart.setOption(_option);
//默認第一條高亮
that.myChart.dispatchAction({type: 'highlight',seriesIndex: 0,dataIndex: 0});
that.myChart.off('click'); //取消echarts點擊多次觸發
that.myChart.on('click',function(e){
// console.log(e)
if(e.dataIndex != chooseIndex){
//沒用選中的取消高亮
that.myChart.dispatchAction({type: 'downplay', seriesIndex: 0, dataIndex: chooseIndex});
}
//選中某一條高亮
chooseIndex = e.dataIndex;
that.myChart.dispatchAction({type: 'highlight',seriesIndex: 0,dataIndex: e.dataIndex});
});