-
Notifications
You must be signed in to change notification settings - Fork 601
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
fix(heatmap): 添加 meta 中的最大最小值参数 可以控制最小显示参数 #3272
Conversation
🎊 PR Preview 22c132c has been successfully built and deployed to https://antvis-G2Plot-preview-pr-3272.surge.sh?type=diff&date=2022-07-11 🕐 Build time: 73.716s 🤖 By Surge Ui Insight |
src/plots/heatmap/adaptor.ts
Outdated
const max = Math.max(...field); | ||
let { min, max } = meta?.[sizeField] || {}; | ||
min = min || Math.min(...field); | ||
max = max || Math.max(...field); |
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.
min max 等于 0 怎么办?
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.
没考虑到~。重新修改了
单测中似乎有 lint 错误。 |
@hustcc 少了个换行, 已经加上了 |
fixed #3170