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 division by zero with minimum top in scaling. This allow zero input value. #2

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

rmedaer
Copy link
Contributor

@rmedaer rmedaer commented Feb 5, 2016

When the result of command is "zero", it throws an division by zero exception.
This is due to calculation made in scale_bar_values with the top value. To ensure we can start the graph with a value zero, I added a minimum top of 1 . This fix also the issue when your graph end by zero values.

rubzo added a commit that referenced this pull request Feb 18, 2016
Fix division by zero with minimum top in scaling. This allow zero input value.
@rubzo rubzo merged commit 24c7338 into rubzo:master Feb 18, 2016
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