nova-chartjs icon indicating copy to clipboard operation
nova-chartjs copied to clipboard

[BUG] btnfilter not working for charts on laravel nova 4.0

Open HAL0594 opened this issue 1 year ago • 0 comments

I'm using the documentation example for a new stacked() chart as the documentation example and it doesn't work. I tried with other graphics and none of them work, without mentioning that although it says that it has support for Laravel nova 4.0, I have noticed several problems with the styles, such as the size of the cards, occupying 2 rows does not work or adjusting to the content or the button refresh that goes out of the card, the example from the documentation I'm following is:

          ->options([
                'btnFilter' => true,
                'btnFilterDefault' => 'YTD',
                'btnFilterList' => [
                    'YTD'   => 'Year to Date',
                    'QTD'   => 'Quarter to Date',
                    'MTD'   => 'Month to Date',
                    '30'   => '30 Days', // numeric key will be set to days
                    '28'   => '28 Days', // numeric key will be set to days
                ],

this not show nothing on the card.

HAL0594 avatar Jun 30 '23 15:06 HAL0594