您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

34 行
702B

  1. <?php
  2. $this->title = 'Statistiques' ;
  3. use dosamigos\chartjs\ChartJs;
  4. $this->params['breadcrumbs'][] = 'Statistiques';
  5. ?>
  6. <h1>Statistiques</h1>
  7. <?= ChartJs::widget([
  8. 'type' => 'line',
  9. 'options' => [
  10. 'height' => 400,
  11. 'width' => 1100
  12. ],
  13. 'data' => [
  14. 'labels' => $data_labels,
  15. 'datasets' => [
  16. [
  17. 'label' => 'Recettes commandes',
  18. 'backgroundColor' => "rgb(187,135,87,0.5)",
  19. 'borderColor' => "rgb(187,135,87,1)",
  20. 'pointBackgroundColor' => "rgb(187,135,87,1)",
  21. 'pointStrokeColor' => "#fff",
  22. 'data' => $data_pain
  23. ]
  24. ]
  25. ]
  26. ]);
  27. ?>