Alan Lam %!s(int64=8) %!d(string=hai) anos
pai
achega
9bad042ed2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/performance.php

+ 1 - 1
controllers/performance.php

@@ -520,7 +520,7 @@ if($submit) {
 		$chart->setType("bar");
 		$chart->setTitle("Totals by $resolution_name");
 		$chart->setLabels($x_data_labels);
-		$chart->addYAxis("linear", "left", "y-axis-1", true, ["min" => 0, "max" => ceil($test_count / 10) * 10]);
+		$chart->addYAxis("linear", "left", "y-axis-1", true, ["min" => 0, "max" => ceil(max($test_counts) / 10) * 10]);
 		$chart->addYAxis("linear", "right", "y-axis-2", false, ["min" => 0, "max" => 100]);
 
 		$chart->addDataset("Pass Rate (%)", $performance, [