-
Notifications
You must be signed in to change notification settings - Fork 601
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
Conversation
lxfu1
commented
Oct 15, 2020
•
edited by hustcc
Loading
edited by hustcc
- fixed v2 雷达图 legend 配置无效 #1727
- 新增 tooltip formatter, fixed 建议 tooltip 补充 formatter 方法 #1724
- 抽取 percent customContent
- Radar 新增 label 支持
😭 Deploy PR Preview 58f363c failed. Build logs 🤖 By surge-preview |
|
||
const geometry = findGeometry(chart, 'line'); | ||
|
||
if (!label) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label === false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个直接判断 false 会遗漏,例如 null、undefined等,感觉不友好。
tooltip.formatter 的单测。包括 util 中的几个 transform 函数的单测。 |
utils/transform-tooltip-spec.ts |