• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/views/jscomponent/amchart/stack.php
  • Класс: BitrixReportVisualConstructorViewsJsComponentAmChartStack
  • Вызов: Stack::handlerFinallyBeforePassToView
public function handlerFinallyBeforePassToView($dataFromReport)
{
	$result = parent::handlerFinallyBeforePassToView($dataFromReport);

	foreach ($result['dataProvider'] as &$data)
	{
		foreach ($data as $valueKey => $value)
		{
			if (mb_strpos($valueKey, 'value_') === 0 && $value === 0)
			{
				unset($data[$valueKey]);
			}
		}
	}


	$result['valueAxes'][0] = array(
		'stackType' => "regular",
		'axisAlpha' => 0,
		'gridAlpha' => 0
	);
	return $result;
}