Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setSparkline returns undefined method #65

Closed
rgbaman opened this issue Oct 6, 2022 · 1 comment
Closed

setSparkline returns undefined method #65

rgbaman opened this issue Oct 6, 2022 · 1 comment

Comments

@rgbaman
Copy link

rgbaman commented Oct 6, 2022

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants