Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dispatchAction hideTip 时只隐藏了tooltip的content,没有隐藏axisPointer #5782

Closed
duxinxiao opened this issue May 19, 2017 · 7 comments
Labels
stale Inactive for a long time. Will be closed in 7 days.

Comments

@duxinxiao
Copy link

One-line summary [问题简述]

dispatchAction({ 'hideTip'}) 的时候,似乎只隐藏了tooltip的content,而没有隐藏axisPointer

Version & Environment [版本及环境]

ECharts version [ECharts 版本]: 3.5.4
Browser version [浏览器类型和版本]: Chrome
OS Version [操作系统类型和版本]: Mac OS

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

Other comments [其他信息]
如果需要我会补充代码以及截图

@tedpenk
Copy link

tedpenk commented Jul 5, 2017

@duxinxiao 和你遇到同样的问题

var typeObj = type === 'showTip' ? {
       type: type,
       dataIndex: allIdIndex,
       seriesIndex: 0
 } : {
       type: type
};
plan1.dispatchAction(typeObj);

type 为 hideTip 时,悬浮框消失了,shadow没有消失:
image
->
image

@tedpenk
Copy link

tedpenk commented Jul 5, 2017

@duxinxiao 联系了作者,先用以下方法解决:

myChart.dispatchAction({
    type: 'hideTip'
});
myChart.dispatchAction({
    type: 'updateAxisPointer',
    currTrigger: 'leave'
})

@duxinxiao
Copy link
Author

@tedpenk 多谢指出,我回去试一下看看

@JsonShare
Copy link

感谢 我也遇到了,@tedpenk

@stale
Copy link

stale bot commented Apr 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@humorHan
Copy link

5.x依然有这个bug。。。

@SpiritQAQ
Copy link

感谢,用上了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

5 participants