© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
jimarick

Chart widget not showing until page refresh

Hi, hope someone can help.

I have a laravel app with livewire and filament. I have created a new livewire component page called Offers. This offers page has a small filament ChartWidget component within it called OfferChart.

When I first load the Offers page, the chart within the OfferChart component does not load. The component itself is visible as white space on the page, but the chart within it is not visible.

When I refresh the page manually using the browser refresh button, the chart appears, and stays there. Any ideas why the chart does not appear on first render?

For information:

The Offers livewire page which inserts a livewire component with:

@livewire(\App\Livewire\OfferChart::class)

The OfferChart component is very simple:

<?php

namespace App\Livewire;

use Filament\Widgets\ChartWidget;
use carbon\Carbon;

class OfferChart extends ChartWidget
{
protected static ?string $maxHeight = '200px';
protected static string $color = 'success';

protected function getData(): array
{
return [
'datasets' => [
[
'label' => 'Number Offered',
'data' => [1,2,3],
],
],
'labels' => [1,2,3],
];
}

protected function getType(): string
{
return 'bar';
}
}
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

Stats widget chart is not refreshing.
FilamentFFilament / ❓┊help
3y ago
Bar Chart Widget labels not working (showing undefined)
FilamentFFilament / ❓┊help
2y ago
Toggle column is not updating until page refresh
FilamentFFilament / ❓┊help
2y ago
widget not showing
FilamentFFilament / ❓┊help
2y ago