title = 'Statistiques' ;
use dosamigos\chartjs\ChartJs;
?>
Recettes des commandes (pain / vrac)
= ChartJs::widget([
'type' => 'Line',
'options' => [
'height' => 400,
'width' => 1100
],
'data' => [
'labels' => $data_labels,
'datasets' => [
[
'fillColor' => "rgba(220,220,220,0.5)",
'strokeColor' => "rgba(220,220,220,1)",
'pointColor' => "rgba(220,220,220,1)",
'pointStrokeColor' => "#fff",
'data' => $data_vrac
],
[
'fillColor' => "rgba(253,212,75,0.5)",
'strokeColor' => "rgba(253,212,75,1)",
'pointColor' => "rgba(253,212,75,1)",
'pointStrokeColor' => "#fff",
'data' => $data_pain
]
]
]
]);
?>