We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following chart working as expected in the development build.
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 } } }
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.
https://codesandbox.io/p/sandbox/react-chartjs-2-chart-js-issue-template-v4-forked-f6rlrj?file=%2Fsrc%2FApp.tsx%3A18%2C19
No response
4.4.0
Chrome 118.0.5
The text was updated successfully, but these errors were encountered:
Any news on this? OP was able to fix?
Sorry, something went wrong.
In my case, { scales: {y: {ticks: { precision: 1 } } } } works.
{ scales: {y: {ticks: { precision: 1 } } } }
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: