- Модуль: report
- Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/views/jscomponent/amchart/multidirectional.php
- Класс: BitrixReportVisualConstructorViewsJsComponentAmChartMultiDirectional
- Вызов: MultiDirectional::handlerFinallyBeforePassToView
public function handlerFinallyBeforePassToView($dataFromReport)
{
$result = parent::handlerFinallyBeforePassToView($dataFromReport);
$result['categoryAxis'] += array(
'dashLength' => 1,
'minorGridEnabled' => true
);
$result['valueAxes'] = array(
array(
"id" => "v1",
"axisColor" => "#FF6600",
"axisThickness" => 2,
"axisAlpha" => 1,
"position" => "left"
),
array(
"id" => "v2",
"axisColor" => "#FFFCCC",
"axisThickness" => 2,
"axisAlpha" => 1,
"position" => "right",
)
);
$isAllReportModeIsDate = true;
foreach ($dataFromReport as $key => $report)
{
if (!isset($report['config']['mode']) && $report['config']['mode'] !== 'date')
{
$isAllReportModeIsDate = false;
break;
}
if ($report['config']['reportColor'])
{
$result['valueAxes'][$key]["axisColor"] = $report['config']['reportColor'];
}
}
$result['categoryAxis']['parseDates'] = $isAllReportModeIsDate;
foreach ($result['graphs'] as $key => &$graph)
{
$graph['valueAxis'] = $result['valueAxes'][$key]['id'];
}
return $result;
}