|
|
@@ -438,6 +438,7 @@ if($submit) {
|
|
|
"#F44336",
|
|
|
]
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" Test");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
|
|
|
@@ -455,6 +456,7 @@ if($submit) {
|
|
|
"#E91E63",
|
|
|
]
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" Test");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Tester Gender
|
|
|
@@ -471,6 +473,7 @@ if($submit) {
|
|
|
"#E91E63",
|
|
|
]
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" Test");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Pass / Fail
|
|
|
@@ -487,6 +490,7 @@ if($submit) {
|
|
|
"#F44336",
|
|
|
]
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" Test");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Pass Rate Period
|
|
|
@@ -503,6 +507,7 @@ if($submit) {
|
|
|
$chart->addDataset("Pass Rate (%)", $performance, [
|
|
|
"background_colours" => "#2196F3"
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes("%");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Monthly Totals by Period
|
|
|
@@ -542,6 +547,7 @@ if($submit) {
|
|
|
"type" => "bar",
|
|
|
"y_axis_id" => "y-axis-1",
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" %", " T", " P", " F");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Point of Challenge (Each Period)
|
|
|
@@ -572,6 +578,7 @@ if($submit) {
|
|
|
"#F44336",
|
|
|
]
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" Test");
|
|
|
$charts[] = $chart;
|
|
|
}
|
|
|
|
|
|
@@ -595,6 +602,7 @@ if($submit) {
|
|
|
$chart->addDataset("Female", $female_counts, [
|
|
|
"background_colours" => "#E91E63"
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" M", " F");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Test Count by Period
|
|
|
@@ -610,6 +618,7 @@ if($submit) {
|
|
|
$chart->addDataset("Tests", $test_counts, [
|
|
|
"background_colours" => "#2196F3"
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes(" Test");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
$pass_counts = array_column($data, "passCount");
|
|
|
@@ -642,6 +651,7 @@ if($submit) {
|
|
|
$chart->addDataset("Pass Rate (%)", $data_values , [
|
|
|
"background_colours" => "#2196F3"
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes("%");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Region Pass Rate Period
|
|
|
@@ -659,6 +669,7 @@ if($submit) {
|
|
|
}
|
|
|
$chart->addDataset($key_labels[$index], $data_values, ["background_colours" => $colours[$index]]);
|
|
|
}
|
|
|
+ $chart->setDatalabelSuffixes(...array_fill(0, count($keys), "%"));
|
|
|
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
@@ -692,6 +703,7 @@ if($submit) {
|
|
|
$chart->addDataset("Pass Rate (%)", $data_values , [
|
|
|
"background_colours" => "#2196F3"
|
|
|
]);
|
|
|
+ $chart->setDatalabelSuffixes("%");
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
// Area Pass Rate Period
|
|
|
@@ -709,6 +721,7 @@ if($submit) {
|
|
|
}
|
|
|
$chart->addDataset($key_labels[$index], $data_values, ["background_colours" => $colours[$index]]);
|
|
|
}
|
|
|
+ $chart->setDatalabelSuffixes(...array_fill(0, count($keys), "%"));
|
|
|
|
|
|
$charts[] = $chart;
|
|
|
|