Skip to content
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

[BUG] series method not working with nova model #135

Open
adaffre opened this issue Jun 1, 2022 · 0 comments
Open

[BUG] series method not working with nova model #135

adaffre opened this issue Jun 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@adaffre
Copy link

adaffre commented Jun 1, 2022

Describe the bug
error when using the ->series([]) method instancing graph in a Laravel Nova resource card, using ->model('Class').

To Reproduce

(new \Coroowicaksono\ChartJsIntegration\BarChart())
                ->title('Misura')
                ->model('\App\Models\Misura') 
                ->col_xaxis('ora')
                ->options([
                    'queryFilter' => array([
                        'key' => 'ora',
                        'operator' => 'IS NOT NULL',
                    ])
                ])
                ->series(array([
                    'label' => 'Product A',
                    'filter' => [
                        'key' => 'type_id',
                        'value' => '1',
                    ],
                ]))
                ->width('2/3'),

Screenshots
image

Dependencies Version:

  • Laravel Version: 9.2
  • Nova Version: 4.0
  • Nova-ChartJS Version: 0.4.0
  • DB: postgreSQL
@adaffre adaffre added the bug Something isn't working label Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant