ant-design-charts icon indicating copy to clipboard operation
ant-design-charts copied to clipboard

🐛[BUG] Tooltip customItems not changes title

Open lajos-vlasics opened this issue 3 years ago • 3 comments
trafficstars

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

The tooltip customItems callback does not changes the 'title' (it works for 'name', or the 'value' field).

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

With the customItems callback, map the original tooltip items and change the 'title' field.

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

The title is actually modified in the tooltip.

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

https://codesandbox.io/s/ant-chart-customitems-not-changes-tooltip-title-fqnd0n?file=/App.tsx

© 版本信息

  • ant-design-charts 版本: [1.3.5, 1.4.2]

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

lajos-vlasics avatar Aug 24 '22 12:08 lajos-vlasics

https://charts.ant.design/en/docs/api/case#custom-tooltip

lxfu1 avatar Aug 24 '22 12:08 lxfu1

No title!

image image

lxfu1 avatar Aug 24 '22 12:08 lxfu1

@lxfu1 I used to customItems to filter tooltip. But it not effect image

image

result: image

ant-design-charts v1.4.2

thanks!

Tiepbm avatar Sep 22 '22 04:09 Tiepbm