|
|
@@ -470,16 +470,16 @@ class ChartGenerator {
|
|
|
}
|
|
|
|
|
|
$chart = new Chart();
|
|
|
- $chart->addYAxis([
|
|
|
+ $chart->addXAxis([
|
|
|
"type" => "category",
|
|
|
"stacked" => true,
|
|
|
]);
|
|
|
- $chart->addXAxis([
|
|
|
+ $chart->addYAxis([
|
|
|
"id" => "y-axis-1",
|
|
|
"tick_config" => ["min" => 0, "max" => 100],
|
|
|
"stacked" => true,
|
|
|
]);
|
|
|
- $chart->setType("horizontalBar");
|
|
|
+ $chart->setType("bar");
|
|
|
$chart->setTitle($title);
|
|
|
$chart->setLabels($this->xDataLabels);
|
|
|
$chart->addDataset("Pass (%)", $pass_rates, ["background_colours" => self::COLOUR_GREEN]);
|