coroo / nova-chartjs

A Simple Dashboard Chart in Laravel Nova using Chart JS. Starting create your own dashboard with Chart JS Integration can save your time and help you maintain consistency across standard elements such as Bar, Stacked, Line, Area, Doughnut and Pie Chart.
https://coroo.github.io/nova-chartjs
MIT License
215 stars 71 forks source link

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

Open HAL0594 opened 1 year ago

HAL0594 commented 1 year ago

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.