/** * @param $id * @return mixed * @throws \OCA\ocUsageCharts\Exception\ChartServiceException */ public function getChart($id) { $config = $this->config->getChartConfigById($id); return $this->getChartByConfig($config); }