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

showTooltip 如何展示多个默认提示? #4801

Closed
1 task done
JslinSir opened this issue Mar 20, 2023 · 2 comments
Closed
1 task done

showTooltip 如何展示多个默认提示? #4801

JslinSir opened this issue Mar 20, 2023 · 2 comments

Comments

@JslinSir
Copy link

JslinSir commented Mar 20, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://f2-v3.antv.vision/zh/examples/component/tooltip#show

Steps to reproduce

// 只是模拟下 数据
  [{},{}].forEach((pIndex) => {
        const item = { time: 'Apr.',  tem: 2600}; // 要展示 tooltip 的数据
        const point = this.chart.getPosition(item); // 获取该数据的画布坐标
        this.chart.showTooltip(point); // 展示该点的 tooltip
       })
Environment Info
g2 3.5.19
System mac
Browser chrome

如何展示多个默认 tooltip ? 最后一个会覆盖前面的

@JslinSir
Copy link
Author

anyone can help me?

@pearmini
Copy link
Member

pearmini commented Mar 28, 2023

v3 版本目前只能展示一个默认提示

@hustcc hustcc closed this as completed Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants