© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Kymset

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
min
value for the y-axis: https://www.chartjs.org/docs/latest/axes/
Axes | Chart.js
Open source HTML5 Charts for your website
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Chart scales ticks
FilamentFFilament / ❓┊help
3y ago
Custom Chart Widget
FilamentFFilament / ❓┊help
15mo ago
Widget with chart
FilamentFFilament / ❓┊help
3y ago
Chart widget with chart.js plugins
FilamentFFilament / ❓┊help
2y ago