Open SneakingSlayer opened 1 year ago
Any progress here? I have the same problem with x scale.
Any progress here? I have the same problem with x scale.
negative.
I found I had a mistake in callback. So now it's working for me.
"x": {
"ticks": {
"autoSkip": false,
"maxRotation": 0,
"font": {
"size": "10px",
"family": "Roboto, Helvetica,Arial,sans-serif",
},
//"callback":
},
},
},
Would you like to work on a fix?
Current and expected behavior
// It still hides the ticks on smaller widths
import { Bar } from 'react-chartjs-2';
<Bar className="chartjs-render-monitor" data={[...data]} options = { { scales: { y : { autoSkip: false } } } } />
Reproduction
Set autoSkip false to the Y scale of any chart and see if it hides the ticks.
chart.js version
4.2.1
react-chartjs-2 version
^5.0.1
Possible solution
No response