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