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

🧐[问题] tooltip 如何简便地配置 label 的文本内容。而不是重定义整个render #2844

Open
ronghaoZHI opened this issue Jan 22, 2025 · 0 comments

Comments

@ronghaoZHI
Copy link

ronghaoZHI commented Jan 22, 2025

🧐 问题描述 [详细地描述问题,让大家都能理解]

Image

我想根据items 配置 tooltip 展示的多label 文本。但是好像得通过定义 render 来实现,有没有什么简易的方式实现。比如类似biz-chart 直接修改 items

 interaction: {
      tooltip: {
        customItems: (items) => [...items]
      }
}

💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]

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

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