'label of set', * 'type' => bar or line, optional * 'yAxisID' => ID of yAxis, optional, will not be included when unused. * 'fill' => if to fill a line? optional, will not be included when unused. * 'entries' => * [ * 'label-of-entry' => 'value' * ] * ] * 1: [ * 'label' => 'label of another set', * 'type' => bar or line, optional * 'yAxisID' => ID of yAxis, optional, will not be included when unused. * 'fill' => if to fill a line? optional, will not be included when unused. * 'entries' => * [ * 'label-of-entry' => 'value' * ] * ] * * @SuppressWarnings(PHPMD.CyclomaticComplexity) // it's five. * * @param array $data * * @return array */ public function multiSet(array $data): array; /** * Expects data as: * * key => value * * @param array $data * * @return array */ public function pieChart(array $data): array; /** * Will generate a (ChartJS) compatible array from the given input. Expects this format: * * 'label-of-entry' => value * 'label-of-entry' => value * * @param string $setLabel * @param array $data * * @return array */ public function singleSet(string $setLabel, array $data): array; }