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默认过滤掉value为null 的内容,是否能够增加配置 #1518

Closed
1 task done
xile611 opened this issue Sep 27, 2019 · 1 comment · Fixed by #3216
Closed
1 task done

Tooltip默认过滤掉value为null 的内容,是否能够增加配置 #1518

xile611 opened this issue Sep 27, 2019 · 1 comment · Fixed by #3216
Labels

Comments

@xile611
Copy link
Contributor

xile611 commented Sep 27, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

数值为null,仍然需要在tooltip中展示对应的文案,如下图的场景

image

What does the proposed API look like?

tooltip.showNil

相关代码

https://github.com/antvis/g2/blob/a79580977cd308c3f0b0e867607753750db5b87c/src/geom/mixin/tooltip.js#L426

https://github.com/antvis/g2/blob/a79580977cd308c3f0b0e867607753750db5b87c/src/geom/mixin/tooltip.js#L436

@hustcc
Copy link
Member

hustcc commented Jan 19, 2021

@xile611 好的,我感觉是很不错的配置,建议你后面有这些 feature 诉求,直接提 PR 即可,这样的效率是最高的。

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

Successfully merging a pull request may close this issue.

3 participants