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

Change rounding algorithm in bubble size legend #429

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

bobular
Copy link
Member

@bobular bobular commented Aug 17, 2023

This issue was that the maxSizeValue from the back end was 196,503. The toPrecision(1) rounded this up. If it had been 149,999, it would have been rounded down and the max bubble size would have been 200,000 as desired. I've changed the algorithm a bit to hopefully do the right thing.

Before:
image

After:
image

Copy link
Member

@chowington chowington left a comment

Choose a reason for hiding this comment

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

Good catch, @bobular!

@bobular bobular merged commit c1a52d0 into main Aug 25, 2023
1 check passed
@bobular bobular deleted the bubble-legend-rounding-fix branch August 25, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants