Skip to content

How to add option for animate in controller #95

@Senrism

Description

@Senrism

$chartMonth = app()->chartjs
->name('lineChart')
->type('line')
->size(['width' => 400, 'height' => 220])
->labels(['January', 'February', 'March', 'April', 'May', 'June', 'July','August', 'September', 'October', 'November', 'December'])
->datasets([
[
"label" => "Total Lhp per Month",
'backgroundColor' => "rgba(38, 185, 154, 0.31)",
'borderColor' => "rgba(38, 185, 154, 0.7)",
"pointBorderColor" => "rgba(38, 185, 154, 0.7)",
"pointBackgroundColor" => "rgba(38, 185, 154, 0.7)",
"pointHoverBackgroundColor" => "#fff",
"pointHoverBorderColor" => "rgba(220,220,220,1)",
'data' => $months->toArray(),
]
])
->options([
//what should i do here
'animation' ??

    ]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions