/** * @return ReportDataProviderToAmChartMakerAdapter */ public function makeReportDataProviderToAmChartMakerAdapter() { if (ChartRules::isStacked($this->report->getChart()->type)) { return $this->makeStackedReportDataProviderToAmChartMakerAdapter(); } else { return $this->makeNonStackedReportDataProviderToAmChartMakerAdapter(); } }
/** * @return bool */ public function isStacked() { return ChartRules::isStacked($this->getType()); }