-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
【特性】label 数据标签支持富文本格式 #5133
Comments
chart
.interval()
.encode('x', 'x')
.encode('y', 'y')
.label({
render: (text, datum) => { return 'hello world'; } // 👈🏻
}) |
可以和 tooltip.render 保持一致的返回值: |
我有个类似的需求,刚刚想用自定义 label 做,看了下 label 的源码,发现 label 的 content 可以传 group 或者 shape。 还是有点好奇,quickBI是用啥做的 |
可以看看 dom 结构,只有两种方案,不是 html label 就是和你一样的方案。 |
好的 谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: