antvis/G2


The issue has been closed
showTooltip 如何展示多个默认提示? #4801
JslinSir posted onGitHub
- 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 ? 最后一个会覆盖前面的
<!-- generated by antv-issue-helper. DO NOT REMOVE -->