Closed lajos-vlasics closed 1 year ago
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
https://charts.ant.design/en/docs/api/case#custom-tooltip
No title!
@lxfu1 I used to customItems to filter tooltip. But it not effect
result:
ant-design-charts v1.4.2
thanks!
🐛 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
© 版本信息
🚑 其他信息 [如截图等其他信息可以贴在这里]