antvis/G2

tooltip的问题 #3217

yuwenyaxing posted onGitHub

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

https://github.com/yuwenyaxing/VueG2

Steps to reproduce

// 不同的指标设置不同的颜色,切换指标后,tooltip还存在上一个指标的颜色 let color = 'red' if (part === '0') { color = '#00FFFF' } else if (part === '1') { color = '#FF7F50' } else if (part === '2') { color = '#7B68EE' } else if (part === '3') { color = '#FFD700' } this.CityGDPChart.interval().position('year*value').color('type', color)

两条线或多条线时toolip文字靠左对齐,出现错位现象 // 设置了position: 'left',没有生效 chart.tooltip({ position: 'left', showCrosshairs: true, shared: true })

Environment Info
g2 4.1.7
System -
Browser -

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


Fund this Issue

$0.00
Funded

Pull requests