antvis/G2

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

JslinSir posted onGitHub

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

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 ? 最后一个会覆盖前面的

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


anyone can help me?

posted by JslinSir about 2 years ago

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

posted by pearmini about 2 years ago

Fund this Issue

$0.00
Funded

Pull requests