asantibanez / livewire-charts

Neat Livewire Charts for your Laravel projects
MIT License
788 stars 116 forks source link

Naming multicolumn not working #47

Open pascallieverse opened 3 years ago

pascallieverse commented 3 years ago

Naming the multicolumn isn't working since version 2.3, on 2.2 its working fine.

For example this code shows the color names fine in version 2.2 but in version 2.3 it shows the index, so 1,2,3

        $chart =  (new ColumnChartModel())->multiColumn();

        $chart->addSeriesColumn("year 2021", "orange", 1);
        $chart->addSeriesColumn("year 2021", "yellow", 1);
        $chart->addSeriesColumn("year 2021", "red", 1);

        $chart->addSeriesColumn("year 2022", "orange", 1);
        $chart->addSeriesColumn("year 2022", "yellow", 1);
        $chart->addSeriesColumn("year 2022", "red", 1);

Version 2.2:

Version 2.3:

samdgea commented 3 years ago

So i'm not the only one who facing with this issue. for now, i'm rollback to version 2.2

muhalovic commented 2 years ago

It's not a bug bro. Just use setXAxisCategories.