akaunting / laravel-apexcharts

ApexCharts package for Laravel
https://akaunting.com
MIT License
73 stars 10 forks source link

DataLabels background method need a fix #12

Open darkons opened 6 months ago

darkons commented 6 months ago

Hello!

I'm sorry but I barely have time to make a PR

public function setDataLabelsBackground(array $dataLabelsBackground): Chart
{
    $this->dataLabelsBackground = $dataLabelsBackground;

    $this->setOption([
        'dataLabels' => [
            'enabled' => $dataLabelsBackground,
        ],
    ]);

    return $this;
}

enabled should be changed to background

Thank your for this package!