leandrocfe / filament-apex-charts

Apex Charts integration for Filament PHP.
https://filament-apex-charts-demo.leandroferreira.dev.br
MIT License
324 stars 39 forks source link

Laravel can't locate Component #38

Closed kiritoriq closed 8 months ago

kiritoriq commented 1 year ago

Hi,

I've been upgraded package from v1 to v2. But after i publish the views and try to run in filament it send me this error image

Am i missing something?

leandrocfe commented 1 year ago

Hi, just remove the folder published.

Regards, Leandro

Em sex., 18 de ago. de 2023 05:11, Ahmad Thoriq @.***> escreveu:

Hi,

I've been upgraded package from v1 to v2. But after i publish the views and try to run in filament it send me this error [image: image] https://user-images.githubusercontent.com/52488419/261543676-856edad7-5aa2-4521-b231-6603fee1d29e.png

Am i missing something?

— Reply to this email directly, view it on GitHub https://github.com/leandrocfe/filament-apex-charts/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5IAIPWM2M3T64P2QRXMXTXV4PRZANCNFSM6AAAAAA3VFMIK4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kiritoriq commented 1 year ago

Hi, yep your solutions is working. But for now, i'm facing new issue. I've created stacked bar, but the xaxis.categories seems not showing. At first i tot it's my code, but when i try to use static array it's same, still doesnt show image

Any advice for this?

kiritoriq commented 1 year ago

And this is my few code to generate the chart.


    'chart' => [
        'type' => 'bar',
        'height' => 300,
        'stacked' => true,
        'stackType' => '100%'
    ],
    'series' => FetchTicketCountByAssigneeAction::resolve()->execute(),
    'xaxis' => [
        'categories' => array_map(fn ($value) => $value['name'], FetchPersonAssignedToTicketAction::resolve()->execute()),
        'labels' => [
            'style' => [
                'colors' => '#9ca3af',
                'fontWeight' => 600,
            ],
        ],
    ],
    'yaxis' => [
        'labels' => [
            'style' => [
                'colors' => '#9ca3af',
                'fontWeight' => 600,
            ],
        ],
    ],
    'colors' => ['#6366f1'],
    'plotOptions' => [
        'bar' => [
            'borderRadius' => 3,
            'horizontal' => true,
        ],
    ],
crgAdrian commented 11 months ago

Hi,

I've been upgraded package from v1 to v2. But after i publish the views and try to run in filament it send me this error image

Am i missing something?

same issue

FilamentPHP : 3.0.88 FilamentApexCharts: 3.0.1

leandrocfe commented 8 months ago

Please check the new version and open a new issue if it was necessary. If you published the views, remove it and try again.