'string', 'float', 'integer' ), 'data' => array( array( 'Mirrors', 3, 3 ), array( 'Textiles', 10, 2 ), array( 'Ligts', 2, 1 ), array( 'Sofas', 9, 1 ) ) ), 'columnsNames' => array( 'Number of sold goods', 'Number of goods in category' ) ); */ $chartData = prepareChartData($arResult, $arGroupingResult['chart']); unset($arGroupingResult); ?> <div style="font-size: 14px; margin: 40px 2px 2px 2px;"><?php echo GetMessage('REPORT_CHART') . ':'; ?> </div> <div id="report-chart-container" class="graph" style="margin-top: 0; font-size: 14px;"> <div style="font-size: 0;"> <img id="report-chart-image" src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAEOSURBVFhHzdhbCsQgDAXQ6azL3eu+plhQOq2P JPf68ENBUA4xQvTw3v8+G7cjAZ1zWzFDCJfnG7uISxM7KKMlBewC7oS843IEd0E+cS/gykiWcEXg CmQNVwXORLZwTeAMZA/XBY5ESnAi4AikFCcGMpEanArIQGpxaiCCtOBMQAvSijMDNUgEBwElSBQH A1tIBo4CLCFZOBrwjmTiqMBUU7LHXFGjG6fIsZ8PFODzWJlIGFjLORYSAvYuBANpBvZwKadRpAko xTGQaqAWhyJVQCsOQYqBKM6KFAFZOAuyC2TjtMgmcBROg6wCR+OkyCJwFk6CfAFn43rIP+AqXAuZ
} $amChartData = array('err' => $err); if ($err === 0) { $amChartData['type'] = $type; $amChartData['width'] = $width; $amChartData['height'] = $height; $amChartData['data'] = $data; $amChartData['categoryField'] = $categoryField; $amChartData['categoryType'] = $categoryType; $amChartData['valueFields'] = $valueFields; $amChartData['valueTypes'] = $valueTypes; $amChartData['valueColors'] = $valueColors; } return $amChartData; } $chartInfo = prepareChartData($arResult); $amChartData = prepareChartDataForAmCharts($chartInfo); unset($chartInfo); $chartErrorCode = $amChartData['err']; $chartErrorMessage = ''; if ($chartErrorCode !== 0) { $chartErrorMessage = GetMessage('REPORT_CHART_ERR_' . sprintf('%02d', $chartErrorCode)); } ?> <div style="margin-bottom: 14px;"><a id="report-chart-showhide" class="report-chart-show"><?php echo GetMessage('REPORT_CHART_HIDE'); ?> </a></div> <div id="report-chart-container" class="graph"<?php echo $chartErrorCode > 0 ? '' : ' style="height: 540px;"'; ?>
'string', 'float', 'integer' ), 'data' => array( array( 'Mirrors', 3, 3 ), array( 'Textiles', 10, 2 ), array( 'Ligts', 2, 1 ), array( 'Sofas', 9, 1 ) ) ), 'columnsNames' => array( 'Number of sold goods', 'Number of goods in category' ) ); */ $chartData = prepareChartData($arResult); ?> <div style="font-size: 14px; margin: 40px 2px 2px 2px;"><?php echo GetMessage('REPORT_CHART') . ':'; ?> </div> <div id="report-chart-container" class="graph" style="margin-top: 0; font-size: 14px;"> <div style="font-size: 0;"> <img id="report-chart-image" src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAEOSURBVFhHzdhbCsQgDAXQ6azL3eu+plhQOq2P JPf68ENBUA4xQvTw3v8+G7cjAZ1zWzFDCJfnG7uISxM7KKMlBewC7oS843IEd0E+cS/gykiWcEXg CmQNVwXORLZwTeAMZA/XBY5ESnAi4AikFCcGMpEanArIQGpxaiCCtOBMQAvSijMDNUgEBwElSBQH A1tIBo4CLCFZOBrwjmTiqMBUU7LHXFGjG6fIsZ8PFODzWJlIGFjLORYSAvYuBANpBvZwKadRpAko xTGQaqAWhyJVQCsOQYqBKM6KFAFZOAuyC2TjtMgmcBROg6wCR+OkyCJwFk6CfAFn43rIP+AqXAuZ gatxNeT2n+gZiFbUo9af6LvlbUS4p8YAAAAASUVORK5CYII=" title="" alt="" />