© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago
D5300

Changing a line chart inner circle color

I've been searching the documentation but I can't find where I can change the inner color of my square. I've also checked the JS docs but same: no results. Anybody that can help me out? In my datasets I have the following array:

protected function getData(): array
    {
        return [
            'datasets' => [
                [
                    'label' => 'Users',
                    'data' => $this->getUserStats()->map(fn (TrendValue $value) => $value->aggregate),
                    'backgroundColor' => '#E8F5E9',
                    'borderColor' => '#4CAF50',
                    'tension' => 0.5,
                ],
            ],
            'labels' => $data->map(fn (TrendValue $value) => $value->date),
        ];
    }
protected function getData(): array
    {
        return [
            'datasets' => [
                [
                    'label' => 'Users',
                    'data' => $this->getUserStats()->map(fn (TrendValue $value) => $value->aggregate),
                    'backgroundColor' => '#E8F5E9',
                    'borderColor' => '#4CAF50',
                    'tension' => 0.5,
                ],
            ],
            'labels' => $data->map(fn (TrendValue $value) => $value->date),
        ];
    }
CleanShot_2025-09-17_at_13.43.462x.jpg
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

Line Chart change background color
FilamentFFilament / ❓┊help
2y ago
Background color line chart not used
FilamentFFilament / ❓┊help
3w ago
Line Chart
FilamentFFilament / ❓┊help
3y ago
Use Different Color for Each Line in Chart
FilamentFFilament / ❓┊help
3y ago