antvis/G2

The issue has been closed
当 encode.series 指定了某一个值时, tooltip.items 自定义 name 会失效 #6192
CullenNg posted onGitHub
问题描述
当我给 encode.series 指定了某一个值时, tooltip.items 自定义函数返回的 name 会失效,会强制返回为 series 指定的值;
items: [
() => {
return {
name: '定制名字', // 失败
value: 10000, // 成功的
}
}
]
重现链接
https://codesandbox.io/p/sandbox/youthful-mountain-ldxlgr
重现步骤
No response
预期行为
No response
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response