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
Zooming out on logarithmic axis clears the chart #153
Comments
I have exactly the same problem. |
Actually if you set the zoom and pan ranges, than it's working |
Hi, I found a solution for that problem. This is the actual function for numerical scale zoom.
The easiest remedy is to add a query if the scale.type is "logarithmic", like:
With this solution the lowest scale point in a logarithmic scale can only be 0. |
@jannisgt Thanks! Do you want to open a PR? |
@jledentu never done, but I try 👍 |
@benmccann I think we can close this issue since chartjs/Chart.js#6058 was merged. |
If you try to zoom out on a logarithmic axis, the chart data will disappear. I think this is because it tries to get a negative value for the scale.
There is no problems with panning though. It correctly gets the new scale.
The text was updated successfully, but these errors were encountered: