27 'chart' => $this->getFormedChartData(),
31 private function getFormedChartData(): array
41 isset($filterParams[
'STORES'])
42 && count($filterParams[
'STORES']) <= self::MAX_CHART_COLUMNS_COUNT
46 'data' => $chartStoreInfo->getCalculatedColumns(),
48 'storeCount' => $chartStoreInfo->getStoresCount(),
49 'cropStoreNamesList' =>
'',
51 'isCommonChart' =>
false,
56 $combinedData = $chartStoreInfo->getCombinedCalculatedColumn(self::MAX_STORES_LIST_CHARS);
58 'data' => [$combinedData],
60 'storeCount' => $chartStoreInfo->getStoresCount(),
61 'cropStoreNamesList' => $combinedData[
'TITLE'],
63 'isCommonChart' =>
true,
67 $chartData[
'currency'] = CurrencyManager::getBaseCurrency();
68 $chartData[
'sliderUrl'] = static::formChartSliderUrl(
'bitrix:catalog.report.store_sale.chart.stores.grid', $filterParams);