tomLadder / react-native-echarts-wrapper

📈Powerful React-Native ECharts Wrapper 📊
MIT License
177 stars 62 forks source link

dispatchAction hideTip is not working #59

Open Markyza opened 4 years ago

Markyza commented 4 years ago

Its my first dispatchAction in echarts-wrapper which actually do nothing. I have no problems with "showTip", but "hideTip " is dead. According to docs it's realy simple:

chart.dispatchAction({
    type: 'hideTip'
})

But in my case nothing happens. In chartconfig.js I found it this._api.dispatchAction({type:\"hideTip\"}) near with this._api.dispatchAction({type:\"updateAxisPointer\", and everything is fine with "updateAxisPointer", but not with "hideTip". Maybe I am doing something wrong, or someone can check if that is a common problem? For now I have to use window.document.getElementById("tooltip").parentElement.style.display = "none"; and it works, but that is not the best solution of the problem.