当 encode.series 指定了某一个值时, tooltip.items 自定义 name 会失效
Closed this issue · 1 comments
CullenNg commented
问题描述
当我给 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
pearmini commented
需要添加如下这一行:
chart.interaction("tooltip", {groupName: false})