You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 不同的指标设置不同的颜色,切换指标后,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)
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
})
The text was updated successfully, but these errors were encountered: