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

setSparkline returns undefined method

Open rgbaman opened this issue 2 years ago • 0 comments

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.

rgbaman avatar Oct 06 '22 08:10 rgbaman