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如何自定义额外数据 #3

Closed
pansila opened this issue Jun 23, 2016 · 1 comment
Closed

tooltip如何自定义额外数据 #3

pansila opened this issue Jun 23, 2016 · 1 comment

Comments

@pansila
Copy link

pansila commented Jun 23, 2016

我已经查过了教程中tooltip的用法,并实现了在tooltip中画另一张图,现在想添加额外数据到tooltip的文字描述里,请问有相应的办法么?

@simaQ
Copy link
Contributor

simaQ commented Jul 1, 2016

额外的数据指的是数据源中其他的字段,还是另一个数据源? 如果是数据源中其他的字段的话,直接用 geom 中的 tooltip('dimA_dimB_dimC') 就行。类似下面这样的代码:

chart.point().position('height*weight').tooltip('gender*height*weight');

@dxq613 dxq613 closed this as completed Jul 1, 2016
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

3 participants