Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
column.php
1<?php
3
8class Column extends Serial
9{
10 const VIEW_KEY = 'amcharts4_column';
12
16 public function __construct()
17 {
18 parent::__construct();
19 $this->setLogoUri('/bitrix/images/report/visualconstructor/view-bar.jpg');
20 }
21
26 public function getCompatibleViewTypes()
27 {
28 return [];
29 }
30
37 public function handlerFinallyBeforePassToView($dataFromReport)
38 {
39 $result = parent::handlerFinallyBeforePassToView($dataFromReport);
40
41 foreach ($result['series'] as $k => $series)
42 {
43 $result['series'][$k]['type'] = 'ColumnSeries';
44 }
45
46 return $result;
47 }
48}