|
@@ -82,7 +82,7 @@ class ChartGenerator {
|
|
|
public function getTestsByStageChart(): Chart {
|
|
public function getTestsByStageChart(): Chart {
|
|
|
$chart = new Chart;
|
|
$chart = new Chart;
|
|
|
$chart->setType("doughnut");
|
|
$chart->setType("doughnut");
|
|
|
- $chart->setTitle("Tests by Stage {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $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(["1 - On Entry", "2 - While Browsing", "3 - During Play", "4 - On Exit", "5 - No Challenge"]);
|
|
|
$chart->addDataset("Tests", [
|
|
$chart->addDataset("Tests", [
|
|
|
$this->totalData->stage1Count,
|
|
$this->totalData->stage1Count,
|
|
@@ -111,7 +111,7 @@ class ChartGenerator {
|
|
|
public function getChallengerGenderChart(): Chart {
|
|
public function getChallengerGenderChart(): Chart {
|
|
|
$chart = new Chart;
|
|
$chart = new Chart;
|
|
|
$chart->setType("pie");
|
|
$chart->setType("pie");
|
|
|
- $chart->setTitle("Staff Gender {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $chart->setTitle("Staff Gender ({$this->dateRangeLabel})");
|
|
|
$chart->setLabels(["Male", "Female", "Unspecified"]);
|
|
$chart->setLabels(["Male", "Female", "Unspecified"]);
|
|
|
$chart->addDataset("Counts", [
|
|
$chart->addDataset("Counts", [
|
|
|
$this->totalData->maleChallengerCount,
|
|
$this->totalData->maleChallengerCount,
|
|
@@ -131,7 +131,7 @@ class ChartGenerator {
|
|
|
public function getTesterGenderChart(): Chart {
|
|
public function getTesterGenderChart(): Chart {
|
|
|
$chart = new Chart;
|
|
$chart = new Chart;
|
|
|
$chart->setType("pie");
|
|
$chart->setType("pie");
|
|
|
- $chart->setTitle("Tester Gender {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $chart->setTitle("Tester Gender ({$this->dateRangeLabel})");
|
|
|
$chart->setLabels(["Male", "Female"]);
|
|
$chart->setLabels(["Male", "Female"]);
|
|
|
$chart->addDataset("Counts", [
|
|
$chart->addDataset("Counts", [
|
|
|
$this->totalData->maleTesterCount,
|
|
$this->totalData->maleTesterCount,
|
|
@@ -149,7 +149,7 @@ class ChartGenerator {
|
|
|
public function getPassFailCountChart(): Chart {
|
|
public function getPassFailCountChart(): Chart {
|
|
|
$chart = new Chart;
|
|
$chart = new Chart;
|
|
|
$chart->setType("pie");
|
|
$chart->setType("pie");
|
|
|
- $chart->setTitle("Pass / Fail {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $chart->setTitle("Pass / Fail ({$this->dateRangeLabel})");
|
|
|
$chart->setLabels(["Pass", "Fail"]);
|
|
$chart->setLabels(["Pass", "Fail"]);
|
|
|
$chart->addDataset("Counts", [
|
|
$chart->addDataset("Counts", [
|
|
|
$this->totalData->passCount,
|
|
$this->totalData->passCount,
|
|
@@ -438,7 +438,7 @@ class ChartGenerator {
|
|
|
"tick_config" => ["min" => 0, "max" => ceil(max($gender_test_counts) / 10) * 10]
|
|
"tick_config" => ["min" => 0, "max" => ceil(max($gender_test_counts) / 10) * 10]
|
|
|
]);
|
|
]);
|
|
|
$chart->setType("bar");
|
|
$chart->setType("bar");
|
|
|
- $chart->setTitle("Gender Comparison {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $chart->setTitle("Gender Comparison ({$this->dateRangeLabel})");
|
|
|
$chart->setLabels(array_column($gender_keys, "label"));
|
|
$chart->setLabels(array_column($gender_keys, "label"));
|
|
|
$chart->addDataset("Tests", $gender_test_counts, [
|
|
$chart->addDataset("Tests", $gender_test_counts, [
|
|
|
"background_colours" => self::COLOUR_BLUE
|
|
"background_colours" => self::COLOUR_BLUE
|
|
@@ -582,7 +582,7 @@ class ChartGenerator {
|
|
|
"tick_config" => ["min" => 0, "max" => 100]
|
|
"tick_config" => ["min" => 0, "max" => 100]
|
|
|
]);
|
|
]);
|
|
|
$chart->setType("bar");
|
|
$chart->setType("bar");
|
|
|
- $chart->setTitle("Region Pass Rate {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $chart->setTitle("Region Pass Rate ({$this->dateRangeLabel})");
|
|
|
$chart->setLabels($this->getRegionXDataLabels());
|
|
$chart->setLabels($this->getRegionXDataLabels());
|
|
|
$chart->addDataset("Pass %", $data_values , [
|
|
$chart->addDataset("Pass %", $data_values , [
|
|
|
"background_colours" => self::COLOUR_BLUE
|
|
"background_colours" => self::COLOUR_BLUE
|
|
@@ -658,7 +658,7 @@ class ChartGenerator {
|
|
|
"tick_config" => ["min" => 0, "max" => 100]
|
|
"tick_config" => ["min" => 0, "max" => 100]
|
|
|
]);
|
|
]);
|
|
|
$chart->setType("bar");
|
|
$chart->setType("bar");
|
|
|
- $chart->setTitle("Area Manager Pass Rate {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $chart->setTitle("Area Manager Pass Rate ({$this->dateRangeLabel})");
|
|
|
$chart->setLabels($this->getAreaManagerXDataLabels());
|
|
$chart->setLabels($this->getAreaManagerXDataLabels());
|
|
|
$chart->addDataset("Pass %", $data_values , [
|
|
$chart->addDataset("Pass %", $data_values , [
|
|
|
"background_colours" => self::COLOUR_BLUE
|
|
"background_colours" => self::COLOUR_BLUE
|
|
@@ -711,7 +711,7 @@ class ChartGenerator {
|
|
|
|
|
|
|
|
$chart = new Chart;
|
|
$chart = new Chart;
|
|
|
$chart->setType("doughnut");
|
|
$chart->setType("doughnut");
|
|
|
- $chart->setTitle("Tests by Cleanliness {$this->dateRangeLabel}");
|
|
|
|
|
|
|
+ $chart->setTitle("Tests by Cleanliness ({$this->dateRangeLabel})");
|
|
|
$chart->setLabels(["Very dirty", "Dirty", "Adequate", "Clean", "Very Clean"]);
|
|
$chart->setLabels(["Very dirty", "Dirty", "Adequate", "Clean", "Very Clean"]);
|
|
|
$chart->addDataset("Tests", [
|
|
$chart->addDataset("Tests", [
|
|
|
$this->totalData->cleanlinessCounts[0],
|
|
$this->totalData->cleanlinessCounts[0],
|