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

Fix LegendThreshold #1831

Merged
merged 3 commits into from
May 20, 2024
Merged

Fix LegendThreshold #1831

merged 3 commits into from
May 20, 2024

Conversation

ZachBarbre
Copy link
Contributor

🐛 Bug Fix

  • Changed how the labelTransform get an upper and lower value to get the color out of the threshold scale.
    This should guarantee a larger or smaller number than the upper and lower bounds is passed into the scale function to retrieve the correct color.
  • Remove the logical OR from the scale() input. It should now never be undefined and this was the cause of a bug if the the lower bound was 1 making value falsy.
  • Because I can't help but make eslint happy, added a type to the domain.

Issue #1828

Copy link
Member

@hshoff hshoff left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @ZachBarbre!

@hshoff hshoff merged commit 0762cf3 into airbnb:master May 20, 2024
2 checks passed
Copy link

🎉 This PR is included in version v3.10.3 of the packages modified 🎉

@hshoff
Copy link
Member

hshoff commented May 20, 2024

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

Successfully merging this pull request may close these issues.

2 participants