ArielMejiaDev / larapex-charts

A Laravel wrapper for apex charts
https://larapex-charts.netlify.app/
MIT License
284 stars 84 forks source link

setSparkline returns undefined method #65

Closed rgbaman closed 1 year ago

rgbaman commented 1 year ago

Great work on the library.

I've just upgraded to v5 for the setSparkline support. Unfortunately I get the following error:

Call to undefined method ArielMejiaDev\LarapexCharts\LineChart::setSparkline()

Chart code:

public function build(): LineChart
    {
        return $this->chart->lineChart()
            ->addData('Physical sales', [40, 93, 35, 42, 18, 82])
            ->setSparkline();
    }

I've tried to debug as much as I can but can't get to the bottom of it. I'm running version 5.1.0.

ArielMejiaDev commented 1 year ago

Please update to 5.2 version or higher it should work properly now, thanks.