livewire-charts icon indicating copy to clipboard operation
livewire-charts copied to clipboard

Naming multicolumn not working

Open pascallieverse opened this issue 3 years ago • 2 comments

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:

pascallieverse avatar Jun 23 '21 14:06 pascallieverse

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

samdgea avatar Jul 06 '21 17:07 samdgea

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

muhalovic avatar Jul 16 '21 12:07 muhalovic