Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLogarithmic Axes does not support a ticks.min value of 0 (Zero) #7299
Labels
Comments
Any chance you can check if this is still true on We've made big improvements to the log chart and it may work now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation Is:
Please Explain in Detail...
I needed to produce a number of charts with a consistent yAxes logarithmic scale so that users can compare between charts.
I tried setting the same yAxes config settings for each chart:
However the scale varied between charts depending on the data values. See example.
After much searching and trial and error it appears that the ticks.min=0 setting is ignored (probably because the logarithm of zero is not defined).
Your Proposal for Changes
In tick Configuration (https://www.chartjs.org/docs/latest/axes/cartesian/#tick-configuration) for 'min' description add a note such as:
(Note: logarithmic scales do not support minimum value of zero)
Example
https://codepen.io/phil-howell/pen/KKdvoKW