|
|
@@ -482,7 +482,7 @@ if($submit) {
|
|
|
]);
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
- // Performance by Period
|
|
|
+ // Pass Rate Period
|
|
|
$performance = array_values(array_map(function($d) {
|
|
|
if($d->testCount == 0) return 0;
|
|
|
return round(($d->passCount / $d->testCount) * 100);
|
|
|
@@ -490,9 +490,9 @@ if($submit) {
|
|
|
|
|
|
$chart = new Chart;
|
|
|
$chart->setType("bar");
|
|
|
- $chart->setTitle("Performance by $resolution_name");
|
|
|
+ $chart->setTitle("Pass Rate by $resolution_name");
|
|
|
$chart->setLabels($x_data_labels);
|
|
|
- $chart->addDataset("Performance (%)", $performance, [
|
|
|
+ $chart->addDataset("Pass Rate (%)", $performance, [
|
|
|
"background_colours" => "#2196F3"
|
|
|
]);
|
|
|
$charts[] = $chart;
|
|
|
@@ -628,15 +628,15 @@ if($submit) {
|
|
|
$chart->setType("bar");
|
|
|
$chart->setTitle("Region Performance");
|
|
|
$chart->setLabels($x_data_labels);
|
|
|
- $chart->addDataset("Performance", $data_values , [
|
|
|
+ $chart->addDataset("Performance (%)", $data_values , [
|
|
|
"background_colours" => "#2196F3"
|
|
|
]);
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
- // Region Performance by Period
|
|
|
+ // Region Pass Rate Period
|
|
|
$chart = new Chart;
|
|
|
$chart->setType("bar");
|
|
|
- $chart->setTitle("Region Performance by $resolution_name");
|
|
|
+ $chart->setTitle("Region Pass Rate by $resolution_name");
|
|
|
$chart->setLabels($x_data_labels);
|
|
|
|
|
|
foreach($keys as $index => $key) {
|
|
|
@@ -674,15 +674,15 @@ if($submit) {
|
|
|
$chart->setType("bar");
|
|
|
$chart->setTitle("Area Manager Performance");
|
|
|
$chart->setLabels($x_data_labels);
|
|
|
- $chart->addDataset("Performance", $data_values , [
|
|
|
+ $chart->addDataset("Performance (%)", $data_values , [
|
|
|
"background_colours" => "#2196F3"
|
|
|
]);
|
|
|
$charts[] = $chart;
|
|
|
|
|
|
- // Area Performance by Period
|
|
|
+ // Area Pass Rate Period
|
|
|
$chart = new Chart;
|
|
|
$chart->setType("bar");
|
|
|
- $chart->setTitle("Area Manager Performance by $resolution_name");
|
|
|
+ $chart->setTitle("Area Manager Pass Rate by $resolution_name");
|
|
|
$chart->setLabels($x_data_labels);
|
|
|
|
|
|
foreach($keys as $index => $key) {
|