Chartjs-How to set min max for x axis depend on data with Chartjs and Spring Boot?

0👍

Usually the chart rearranges itself quite good after each data change.

If you want to force min and max values you have to update/override the options of your chart with Math.floor() and Math.ceil() whenever your data changes.

Leave a comment