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

🐛[BUG] 使用identity颜色映射时,轴线图中,tooltip的name不受控制 #2768

Open
Dzxwind opened this issue Nov 12, 2024 · 0 comments

Comments

@Dzxwind
Copy link

Dzxwind commented Nov 12, 2024

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

当我数据中具有color字段时,使用identify颜色映射。
ant-deisgn-chart的tooltip中的name会显示成颜色的字段
(我试图修改tooltip中的name属性,发现不受控制)
image

当我使用antv/g2的时候,tooltip是正常的
image

而且我尝试更换成area和line,发现似乎是轴线图都会有类似问题,pie就是正常的

详情可见下面的复现代码(codesandbox)

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

鼠标移动到柱状图,查看tooltip

🏞 期望结果 [描述你原本期望看到的结果]

希望tooltip的name能够像g2一样受控

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

https://codesandbox.io/p/sandbox/sweet-thunder-syd2zk?file=%2Findex.js%3A8%2C27

© 版本信息

  • ant-design-charts 版本: [e.g. 0.9.0]
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息 [如截图等其他信息可以贴在这里]

@Dzxwind Dzxwind changed the title 🐛[BUG] 使用identity颜色映射时,tooltip表现形式不一样 🐛[BUG] 使用identity颜色映射时,轴线图中,tooltip的name不受控制 Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant