© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
trovster

Remove Axis from Chart (Pie)

I've created a pie chart, but there are axis that appear. I have tried to remove these via the
getOptions
getOptions
method, but it doesn't remove them. Strangely when I enable them, they appear twice.

protected function getOptions(): array
{
    return [
        'scales' => [
            'yAxis' => [
                'display' => false,
            ],
            'xAxis' => [
                'display' => false,
            ],
        ],
    ];
}
protected function getOptions(): array
{
    return [
        'scales' => [
            'yAxis' => [
                'display' => false,
            ],
            'xAxis' => [
                'display' => false,
            ],
        ],
    ];
}
axis-disabled.png
axis-enabled.png
Solution
Ah, what I actually needed was to use
x
x
and
y
y
instead of
xAxis
xAxis
and
yAxis
yAxis
.
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

Remove Grid from Pie/Doughnut(chart-widget)
FilamentFFilament / ❓┊help
3y ago
pie chart
FilamentFFilament / ❓┊help
3y ago
How to remove X and Y in pie chart
FilamentFFilament / ❓┊help
3y ago
How to display percentages on pie chart pieces?
FilamentFFilament / ❓┊help
3y ago