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

当调用 hideTip时,怎么把crossline也给隐藏掉 #7303

Closed
xmchyabi opened this issue Dec 18, 2017 · 6 comments
Closed

当调用 hideTip时,怎么把crossline也给隐藏掉 #7303

xmchyabi opened this issue Dec 18, 2017 · 6 comments
Labels
stale Inactive for a long time. Will be closed in 7 days.

Comments

@xmchyabi
Copy link

One-line summary [问题简述]

原先是想实现一个交互,当手指移开时隐藏tooltip框,调用
dispatchAction({
type: 'hideTip'
})
是可以实际隐藏提示框,但是同时没有把cross line 给隐藏掉.
不知道还有其它API可以实现,当手指移开后,自动隐藏提示框和交叉线。
谢谢

Version & Environment [版本及环境]

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

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

@pissang
Copy link
Contributor

pissang commented Dec 19, 2017

更新到最新版本

@xmchyabi
Copy link
Author

@pissang 好的谢谢

@Genxx
Copy link

Genxx commented Apr 11, 2018

@pissang 我的版本是4.0.4,好像也有相同的问题。还有没有别的方法隐藏crossline?

@stale
Copy link

stale bot commented Apr 10, 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.

@lunaninenine
Copy link

Version 5.3.3 still does not address this issue

@helgasoft
Copy link

Workaround by Kikon from here.
"A hacky way I found that helps is to add a showTip with dataIndex:-1 after the hideTip"

myChart.dispatchAction({
    type: 'hideTip'
});
myChart.dispatchAction({
    type: 'showTip',
    seriesIndex: 0,
    dataIndex: -1
});

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