Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
donutdiagram.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Report\VisualConstructor\Config\Common
;
7
12
class
DonutDiagram
extends
PieDiagram
13
{
14
const
VIEW_KEY
=
'donutDiagram'
;
15
const
MAX_RENDER_REPORT_COUNT
= 1;
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
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Report\VisualConstructor\Config\Common
Definition
common.php:11
Bitrix\Report\VisualConstructor\View\setLogoUri
setLogoUri($logoUri)
Definition
view.php:102
Bitrix\Report\VisualConstructor\View\setCompatibleDataType
setCompatibleDataType($compatibleDataType)
Definition
view.php:121
Bitrix\Report\VisualConstructor\View\setLabel
setLabel($label)
Definition
view.php:83
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram
Definition
donutdiagram.php:13
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram\__construct
__construct()
Definition
donutdiagram.php:20
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram\getAmChartType
getAmChartType()
Definition
donutdiagram.php:67
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram\getCompatibleViewTypes
getCompatibleViewTypes()
Definition
donutdiagram.php:33
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram\MAX_RENDER_REPORT_COUNT
const MAX_RENDER_REPORT_COUNT
Definition
donutdiagram.php:15
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram\handlerFinallyBeforePassToView
handlerFinallyBeforePassToView($dataFromReport)
Definition
donutdiagram.php:46
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram\VIEW_KEY
const VIEW_KEY
Definition
donutdiagram.php:14
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\PieDiagram
Definition
piediagram.php:15
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart
Definition
base.php:3
modules
report
lib
visualconstructor
views
jscomponent
amchart
donutdiagram.php
Создано системой
1.10.0