-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating chart data not working #58
Comments
You can use the same method in the |
Yes, you are right. Calling public function rendering(): void
{
$this->updateOptions();
} from within Maybe we should add that to the documentation? Or am I misusing the widget? Is there a better way to do this sort of updating? |
@leandrocfe I have a similar issue for I am using the native filter form for Filament https://filamentphp.com/docs/3.x/panels/dashboard#filtering-widget-data When changing the filter form the widget do not update, I only see it updated on the poll. I am new to Livewire so I am little lost, how would I have to change the FooChart in the above example to listen to the native Filament filter for dashboards? |
For anyone looking for the same issue, adding this to your widget makes the chart listen to the default filter in Filament also.
Perhaps you should include it by default @leandrocfe as I don't see a downside ? |
Thanks for sharing! I faced the same problem and spent a lot of time updating the chart. The default setting should actually be there. |
Hi @leandrocfe I've been faced for same problem too. May you consider including it by default. |
Hey, I have problems with updating the chart data. I change the data outside of my chart component and use Livewire's
Reactive
attribute to trigger the update. However, nothing happens. This is my setup:I've checked the source code of Filaments
ChartWidget
and noticed arendering()
method that is missing inApexChartWidget
. If we add that, updating works as expected:The text was updated successfully, but these errors were encountered: