Building for production removes y axis ticks
- Dominant language
- JavaScript
- Stars
- 67.7k
- Forks
- 11.9k
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 5
Description
### Expected behavior
I have the following chart working as expected in the development build.

### Current behavior
When I build it in production, ticks on the y-axis disappear except maybe the max one. Also the label format changes.

I have 2 null values at the end of my data.
I tried forcing ticks with the following option:
`scales: {
y: {
ticks: {
autoSkip: false,
count: 10
}
}
}`
├── chart.js@4.4.0
├── chartjs-plugin-datalabels@2.2.0
├── next@12.3.1
├── react-chartjs-2@5.2.0
├── react-dom@18.2.0
├── react@18.2.0
Sorry, could not create an interactive demo.
### Reproducible sample
https://codesandbox.io/p/sandbox/react-chartjs-2-chart-js-issue-template-v4-forked-f6rlrj?file=%2Fsrc%2FApp.tsx%3A18%2C19
### Optional extra steps/info to reproduce
_No response_
### Possible solution
_No response_
### Context
_No response_
### chart.js version
4.4.0
### Browser name and version
Chrome 118.0.5
### Link to your project
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.