Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
donutdiagram.php
1<?php
2
4
7
13{
14 const VIEW_KEY = 'donutDiagram';
16
20 public function __construct()
21 {
22 parent::__construct();
23 $this->setLabel(Loc::getMessage('REPORT_DONUT_DIAGRAM_VIEW_LABEL'));
24 $this->setLogoUri('/bitrix/images/report/visualconstructor/view-donut.png');
25 $this->setCompatibleDataType(Common::MULTIPLE_REPORT_TYPE);
26 }
27
33 public function getCompatibleViewTypes()
34 {
35 $viewTypes = parent::getCompatibleViewTypes();
36 $viewTypes[] = 'pieDiagram';
37 return $viewTypes;
38 }
39
46 public function handlerFinallyBeforePassToView($dataFromReport)
47 {
48 $result = parent::handlerFinallyBeforePassToView($dataFromReport);
49
50 $result['depth3D'] = 0;
51 $result['innerRadius'] = '60%';
52 $result['angle'] = 0;
53 $result['autoMargins'] = false;
54 $result['marginLeft'] = 10;
55 $result['marginRight'] = 10;
56 $result['marginBottom'] = 10;
57 $result['marginTop'] = 10;
58 $result['legend']['position'] = "right";
59 return $result;
60 }
61
67 protected function getAmChartType()
68 {
69 return 'pie';
70 }
71}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29
setCompatibleDataType($compatibleDataType)
Definition view.php:121