• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/views/jscomponent/amchart/lineargraph.php
  • Класс: BitrixReportVisualConstructorViewsJsComponentAmChartLinearGraph
  • Вызов: LinearGraph::handlerFinallyBeforePassToView
public function handlerFinallyBeforePassToView($dataFromReport)
{
	$result = parent::handlerFinallyBeforePassToView($dataFromReport);
	$result['categoryAxis'] += array(
		'dashLength' => 1,
		'minorGridEnabled' => true
	);

	$isAllReportModeIsDate = true;
	foreach ($dataFromReport as $report)
	{
		if (!isset($report['config']['mode']) && $report['config']['mode'] !== 'date')
		{
			$isAllReportModeIsDate = false;
			break;
		}
	}
	$result['categoryAxis']['parseDates'] = $isAllReportModeIsDate;

	if (!empty($dataFromReport[0]['config']['categoryAxis']['labelFrequency']))
	{
		$result['categoryAxis']['labelFrequency'] = $dataFromReport[0]['config']['categoryAxis']['labelFrequency'];
	}

	return $result;
}