在移动端中echarts图表绘制折线图,点击折线图出现基准线,3秒之后消失
cgecharts.getZr().on('mouseup', () => {
setTimeout(function () {
console.log('手指移除')
cgecharts.dispatchAction({
type: 'hideTip'
})
cgecharts.dispatchAction({
type: 'updateAxisPointer',
currTrigger: 'leave'
});
console.log('消失')
},3000)
});
}