Skip to content

tooltip自定义render的问题:两个mark分别设置render,后一个覆盖了前一个 #5340

Answered by pearmini
ChristmasFox asked this question in Q&A
Discussion options

You must be logged in to vote

一个 view 只能有一份 tooltip 配置,所以上面的写法本来就要被合并。如果希望不同的 mark 渲染不同的 tooltip,可以通过 render 里面的 event 参数里面的 target 判断是哪个 mark,然后返回对应的渲染结果。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChristmasFox
Comment options

Answer selected by pearmini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants