|
- <?php
-
-
-
- use dosamigos\chartjs\ChartJs;
-
- $this->setTitle('Statistiques (chiffres d\'affaires)') ;
- $this->addBreadcrumb('Statistiques (chiffres d\'affaires)') ;
-
- ?>
-
- <?= ChartJs::widget([
- 'type' => 'line',
- 'options' => [
- 'height' => 400,
- 'width' => 1100
- ],
- 'clientOptions' => [
- 'scales' => [
- 'yAxes' => [[
- 'ticks' => [
- 'beginAtZero' => true
- ]
- ]],
- ],
- ],
- 'data' => [
- 'labels' => $dataLabels,
- 'datasets' => [
- [
- 'label' => 'Chiffre d\'affaires',
- 'backgroundColor' => "rgb(255,127,0,0.5)",
- 'borderColor' => "rgb(255,127,0,1)",
- 'pointBackgroundColor' => "rgb(255,127,0,1)",
- 'pointStrokeColor' => "#fff",
- 'data' => $data
- ]
- ]
- ]
- ]);
-
- ?>
|