Dynamic Default Chart Filter

How do i set the default filter for chart widget if it is dynamic or based on something?


I tried setting
public static ?string $filter 

But it's not dynamic

I also tried changing the value inside getData()
$this->filter = $myFilter

But it sets it constantly even when i tried to change filter

Currently on my code i dynamicly create an array for the getFilter() so i want to know how can i also access it dynamically
Was this page helpful?