Skip to content

feat: tooltip, label 增加 formatter 能力 #1730

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

Merged
merged 3 commits into from
Oct 16, 2020
Merged

feat: tooltip, label 增加 formatter 能力 #1730

merged 3 commits into from
Oct 16, 2020

Conversation

lxfu1
Copy link
Member

@lxfu1 lxfu1 commented Oct 15, 2020

@auto-add-label auto-add-label bot added the Bug Something isn't working label Oct 15, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2020

😭 Deploy PR Preview 58f363c failed. Build logs

🤖 By surge-preview


const geometry = findGeometry(chart, 'line');

if (!label) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

label === false

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个直接判断 false 会遗漏,例如 null、undefined等,感觉不友好。

@hustcc
Copy link
Member

hustcc commented Oct 15, 2020

tooltip.formatter 的单测。包括 util 中的几个 transform 函数的单测。

@lxfu1
Copy link
Member Author

lxfu1 commented Oct 15, 2020

tooltip.formatter 的单测。包括 util 中的几个 transform 函数的单测。

utils/transform-tooltip-spec.ts
plots/radar/tooltip-spec.ts

@hustcc hustcc changed the title fix: issue 1727 feat: tooltip, label 增加 formatter 能力 Oct 16, 2020
@auto-add-label auto-add-label bot added enhancement New feature or request and removed Bug Something isn't working labels Oct 16, 2020
@hustcc hustcc merged commit 58f363c into master Oct 16, 2020
@hustcc hustcc deleted the feat/formatter branch October 16, 2020 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR: merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v2 雷达图 legend 配置无效 建议 tooltip 补充 formatter 方法
3 participants