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
216 stars 72 forks source link

Fixed Undefined property: stdClass::$filter ( for model ) #176

Open Sinecuraweb opened 10 months ago

dmason30 commented 9 months ago

The fix should be to update to Nova 4.31, the package should be updated to make that the min version, not this change.

imvahid commented 6 months ago

You have made a mistake, and you can use filters with this format: 'filter' => [ [ 'key' => 'product_id', // State Column for Count Calculation Here 'operator' => '=', 'value' => '0' ] ],

instead this format that exists in docs: 'filter' => [ 'key' => 'product_id', // State Column for Count Calculation Here 'operator' => '=', 'value' => '1' ],