|
12345678910111213141516171819202122232425262728293031323334 |
- <?php
-
- $this->title = 'Statistiques' ;
-
- use dosamigos\chartjs\ChartJs;
-
- $this->params['breadcrumbs'][] = 'Statistiques';
-
- ?>
-
- <h1>Statistiques</h1>
-
- <?= ChartJs::widget([
- 'type' => 'line',
- 'options' => [
- 'height' => 400,
- 'width' => 1100
- ],
- 'data' => [
- 'labels' => $data_labels,
- 'datasets' => [
- [
- 'label' => 'Recettes commandes',
- 'backgroundColor' => "rgb(187,135,87,0.5)",
- 'borderColor' => "rgb(187,135,87,1)",
- 'pointBackgroundColor' => "rgb(187,135,87,1)",
- 'pointStrokeColor' => "#fff",
- 'data' => $data_pain
- ]
- ]
- ]
- ]);
-
- ?>
|