1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
smoothedgraph.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart;
4
5
use Bitrix\Main\Localization\Loc;
6
11
class
SmoothedGraph
extends
LinearGraph
12
{
13
const
VIEW_KEY
=
'smoothedLineGraph'
;
14
18
public
function
__construct
()
19
{
20
parent::__construct();
21
$this->
setLabel
(Loc::getMessage(
'REPORT_SMOOTHED_LINEAR_GRAPH_VIEW_LABEL'
));
22
$this->
setLogoUri
(
'/bitrix/images/report/visualconstructor/view-graph.jpg'
);
23
}
24
30
public
function
getCompatibleViewTypes
()
31
{
32
$viewTypes = parent::getCompatibleViewTypes();
33
$viewTypes[] =
'stack'
;
34
$viewTypes[] =
'linearGraph'
;
35
$viewTypes[] =
'column'
;
36
return
$viewTypes;
37
}
38
45
public
function
handlerFinallyBeforePassToView
($dataFromReport)
46
{
47
$result
= parent::handlerFinallyBeforePassToView($dataFromReport);
48
foreach
(
$result
[
'graphs'
] as &$graphConfig)
49
{
50
$graphConfig[
'type'
] =
'smoothedLine'
;
51
}
52
return
$result
;
53
}
54
55
}
Bitrix\Report\VisualConstructor\View\setLogoUri
setLogoUri($logoUri)
Определения
view.php:102
Bitrix\Report\VisualConstructor\View\setLabel
setLabel($label)
Определения
view.php:83
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\LinearGraph
Определения
lineargraph.php:12
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph
Определения
smoothedgraph.php:12
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph\__construct
__construct()
Определения
smoothedgraph.php:18
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph\getCompatibleViewTypes
getCompatibleViewTypes()
Определения
smoothedgraph.php:30
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph\handlerFinallyBeforePassToView
handlerFinallyBeforePassToView($dataFromReport)
Определения
smoothedgraph.php:45
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph\VIEW_KEY
const VIEW_KEY
Определения
smoothedgraph.php:13
$result
$result
Определения
get_property_values.php:14
bitrix
modules
report
lib
visualconstructor
views
jscomponent
amchart
smoothedgraph.php
Создано системой
1.14.0