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

tooltip的问题 #3217

Closed
1 task done
yuwenyaxing opened this issue Jan 19, 2021 · 1 comment
Closed
1 task done

tooltip的问题 #3217

yuwenyaxing opened this issue Jan 19, 2021 · 1 comment

Comments

@yuwenyaxing
Copy link

yuwenyaxing commented Jan 19, 2021

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

Reproduction link

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 -
@hustcc
Copy link
Member

hustcc commented Jan 29, 2021

@yuwenyaxing 方便给一个 live demo,我用来直接调试做 bugfix 吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants