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

🤔 [QUESTION] 求,桑基图label.callback返回带value相关数据 #2746

Closed
ntscshen opened this issue Aug 2, 2021 · 1 comment
Closed
Labels
Question Further information is requested

Comments

@ntscshen
Copy link
Contributor

ntscshen commented Aug 2, 2021

🐛 Question description [Please make everyone to understand it]

🤔 [QUESTION] 求,桑基图label.callback返回带value相关数据

官方案例: https://antv-g2plot.gitee.io/zh/examples/relation-plots/sankey#alipay

  // 求入参,包含value数据相关
  label: {
    callback: (x, name) => {
      console.log(x); // Array(4) [ 0.992, 1, 1, 0.992 ]
      console.log(name); // 蚂蚁森林
      return { content: name }
    }
  }
@ntscshen ntscshen added the Question Further information is requested label Aug 2, 2021
@visiky
Copy link
Member

visiky commented Aug 4, 2021

新的使用方式,依赖: #2756

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants