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

Regarding add animation to lava bar charts in laravel project #278

Open
MadhurangaPrashan opened this issue Oct 29, 2018 · 0 comments
Open

Comments

@MadhurangaPrashan
Copy link

What Version?

versions : * 3.1.11

Issue

I had tried more time but i have not seen any animation in the front view.

Controller Code (chart creation code)

public function lineChart()
{
$lava = new Lavacharts;
$fans = $lava->DataTable();
$value=LineChart::select('year as 0','volleyball as 1','football as 2','elle as 3')
->get()
->toArray();

    $fans->addStringColumn('year')
               ->addNumberColumn('volleyball')
               ->addNumberColumn('football')
               ->addNumberColumn('elle')
               ->addRows($value);
               
    $lava->LineChart('year', $fans, [
        'height'  => 500,
        'width'      => 800,
        'animation' => [
            'startup' => true,
            'easing' => 'linear'
            ]
        
        
        
        ]);
    return view('linechart',compact('lava'));
}

View Code

<title>Laravel LineChart Example</title>

Laravel LineChart Example


render('LineChart', 'year', 'line') ?>
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

1 participant