Chart Widget - Ticks

I have a chart that is measuring user logins.

However at small numbers or if there is no data the chart displays the possiblity of negative numbers and .5 of ticks.
This doesn't make sense for this chart, you can't get negative logins or .5 of a login.

Is there a way I can set the ticks to only be postive and for the ticks to be whole numbers?

As part of my solution I am also using the flowframe/laravel-trend as reccomended in the docs
Screenshot_2024-08-05_at_09.17.25.png
Solution
We are using Chart.JS for the charts so check their docs. You probably want to set a min value for the y-axis: https://www.chartjs.org/docs/latest/axes/
Open source HTML5 Charts for your website
Was this page helpful?