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 chart label to better align with results min/max values #116

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Fix chart label to better align with results min/max values #116

merged 1 commit into from
Dec 2, 2020

Conversation

thepacketgeek
Copy link
Contributor

The issue brought up in #115 is a result of the generated labels having too large of an increment and accumulating well past the maximum value.

This PR calculates labels more true to the min/max values by chunking the max - min difference into the same 7 chunks that are used for the labels. There's still a chance for misalignment on either sides, but this is much closer.

Screen Shot 2020-12-02 at 10 03 45 AM

Screen Shot 2020-12-02 at 10 03 59 AM

@orf
Copy link
Owner

orf commented Dec 2, 2020

oof, why didn't I do this originally 😂. Thanks for this!

@orf orf merged commit 4899991 into orf:master Dec 2, 2020
@thepacketgeek thepacketgeek deleted the fix-chart-labels branch December 2, 2020 20:04
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.

2 participants