Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
column.php
1<?php
3
5
10class Column extends Serial
11{
12 const VIEW_KEY = 'column';
13
17 public function __construct()
18 {
19 parent::__construct();
20 $this->setLabel(Loc::getMessage('REPORT_COLUMN_VIEW_LABEL'));
21 $this->setLogoUri('/bitrix/images/report/visualconstructor/view-bar.jpg');
22 }
23
28 public function getCompatibleViewTypes()
29 {
30 $viewTypes = parent::getCompatibleViewTypes();
31 $viewTypes[] = 'smoothedLineGraph';
32 $viewTypes[] = 'linearGraph';
33 $viewTypes[] = 'stack';
34 return $viewTypes;
35 }
36
43 public function handlerFinallyBeforePassToView($dataFromReport)
44 {
45 $result = parent::handlerFinallyBeforePassToView($dataFromReport);
46 $result['categoryAxis']['labelRotation'] = 45;
47 $result['categoryAxis']['gridPosition'] = "start";
48 foreach ($result['graphs'] as &$graphConfig)
49 {
50 $graphConfig['type'] = 'column';
51 $graphConfig['lineAlpha'] = '0.1';
52 $graphConfig['fillAlphas'] = '1';
53 }
54 return $result;
55 }
56}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29