|
|
@@ -208,11 +208,11 @@ class ChartGenerator {
|
|
|
}
|
|
|
|
|
|
// Charts
|
|
|
- public function getTestsByStageChart(): Chart {
|
|
|
+ public function getTestsByStageChart(array $labels): Chart {
|
|
|
$chart = new Chart;
|
|
|
$chart->setType("doughnut");
|
|
|
$chart->setTitle("Tests by Stage ({$this->dateRangeLabel})");
|
|
|
- $chart->setLabels(["1 - On Entry", "2 - While Browsing", "3 - During Play", "4 - On Exit", "5 - No Challenge"]);
|
|
|
+ $chart->setLabels($labels);
|
|
|
$chart->addDataset("Tests", [
|
|
|
$this->totalData->stage1Count,
|
|
|
$this->totalData->stage2Count,
|