You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, thank you for the explanation, @etimberg . Makes sense for categorical labels, even though I find it a bit confusing to have a different behaviour than for linear scale, for instance.
On a related note, it also took me some time to understand that the default axis type for the x-axis is "catetegory" even if the labels are numeric. It could be helpful to have another example under the header "Scale options" for "Numeric X Axis" (there is already "Non Numeric Y Axis"): https://www.chartjs.org/samples/3.0.0-alpha/.
Expected Behavior
We can specify a callback for the ticks of an axis in the form
The callback function should receive the default tick label as first argument and a numeric index as second (https://www.chartjs.org/docs/3.0.0-alpha/axes/labelling.html).
Current Behavior
For the x-Axis the callback function receives the index twice instead of value and index. For the y-Axis it works fine.
Steps to Reproduce
https://jsfiddle.net/fshu1xa8/
Environment
Chart.js version 3.0.0-beta.3 (works fine in 2.9.3, although the syntax needs to be adapted).
The text was updated successfully, but these errors were encountered: