1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
column.php
См. документацию.
1<?php
2namespace Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart;
3
4use Bitrix\Main\Localization\Loc;
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}
setLogoUri($logoUri)
Определения view.php:102
setLabel($label)
Определения view.php:83
$result
Определения get_property_values.php:14