事件
ele.on("mouseover",function(parm){
me.stopPlay();
me.ele.dispatchAction({
type: 'highlight',
seriesIndex:me.series,
dataIndex: (parm.dataIndex)
});
me.count=parm.dataIndex;
console.log(parm)
});
tool触发配置
"tooltip": {
"trigger":"axis",
"axisPointer": {
"type": "shadow",
textStyle: {
color: "#fff"
}
},
},
现在的问题只有在柱形图上触发事件我想在显示tooltips触发事件
可以利用tooltip.formatter的回调函数,我都是这样干的:)