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 zooming clears logarithmic scale #199

Closed
wants to merge 2 commits into from
Closed

Conversation

jannisgt
Copy link
Contributor

@jannisgt jannisgt commented Feb 6, 2019

Existing error: Logarithmic scale gets cleared out by zooming out.

Error diagnosis: Minimum value of scale was getting a negative value, logarithmic scales are not able to show negative values -> gets cleared out.

Bug fixing: When the scale would get a negative value it will be substituted by 0.

Closes #153

Existing error: Logarithmic scale gets cleared out by zooming out.

Error diagnosis: Minimum value of scale was getting a negative value,
logarithmic scales are not able to show negative values -> gets cleared
out.

Bug fixing: When the scale would get a negative value it will be
substituted by 0.
src/plugin.js Outdated Show resolved Hide resolved
@benmccann
Copy link
Collaborator

benmccann commented Feb 9, 2019

I created chartjs/Chart.js#6058 as an alternate fix which would potentially allow us to avoid adding special case logic here

@jledentu
Copy link
Collaborator

jledentu commented Feb 9, 2019

@benmccann Nice! Handling this case in the core is actually better!

@benmccann
Copy link
Collaborator

I'm going to close this since chartjs/Chart.js#6058 was merged

Thanks for raising this issue and proposing the fix

@benmccann benmccann closed this Feb 24, 2019
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.

Zooming out on logarithmic axis clears the chart
3 participants