-
Notifications
You must be signed in to change notification settings - Fork 121
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(bar): filter zero-height bars from rendering #1281
Conversation
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.
LGTM, tested locally.
width: | ||
themeRectBorderStyle.visible && rect.height > themeRectBorderStyle.strokeWidth | ||
? themeRectBorderStyle.strokeWidth | ||
: 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.
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.
I agree - hopefully this is an extreme edge case.
🎉 This PR is included in version 33.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
The rect border does not render for bar charts with values smaller than the strokeWidth (including zero y-values).
Details
{ x: 'B', y: 20, val: 1222 },
should not exist since the y value is so small (d42a3f2)Issues
Fixes #1279
Checklist