© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Anderson Belderrama

Remove Grid from Pie/Doughnut(chart-widget)

It took me a few hours to discover and configure the Pie chart. Because it comes by default with a grid of other sample graphs. I want to contribute, so that other people don't waste the same time I lost. Add the following code to your chart class.

protected static ?array $options = [
'scales' => [
'y' => [
'grid' => [
'display' => false,
],
'ticks' => [
'display' => false,
]
],
'x' => [
'grid' => [
'display' => false,
],
'ticks' => [
'display' => false,
]
],
],
];
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

Remove Axis from Chart (Pie)
FilamentFFilament / ❓┊help
3y ago
Doughnut Chart Hiding Background Grid (Axes)
FilamentFFilament / ❓┊help
3y ago
pie chart
FilamentFFilament / ❓┊help
3y ago
Doughnut chart lines
FilamentFFilament / ❓┊help
2y ago