Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
column.php
1
<?php
2
namespace
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart
;
3
4
use
Bitrix\Main\Localization\Loc
;
5
10
class
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
}
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\View\setLogoUri
setLogoUri($logoUri)
Definition
view.php:102
Bitrix\Report\VisualConstructor\View\setLabel
setLabel($label)
Definition
view.php:83
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column
Definition
column.php:11
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column\__construct
__construct()
Definition
column.php:17
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column\getCompatibleViewTypes
getCompatibleViewTypes()
Definition
column.php:28
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column\handlerFinallyBeforePassToView
handlerFinallyBeforePassToView($dataFromReport)
Definition
column.php:43
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column\VIEW_KEY
const VIEW_KEY
Definition
column.php:12
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Serial
Definition
serial.php:14
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart
Definition
base.php:3
modules
report
lib
visualconstructor
views
jscomponent
amchart
column.php
Создано системой
1.10.0