Skip to content

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

Open
@ronghaoZHI

Description

@ronghaoZHI

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

Image

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

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions