19 declare(strict_types=1);
38 $f = $DIC->ui()->factory();
39 $df = new \ILIAS\Data\Factory();
43 $c_dimension = $df->dimension()->cardinal();
46 $dataset = $df->dataset([
47 "Dataset 1.1" => $c_dimension,
48 "Dataset 1.2" => $c_dimension,
49 "Dataset 2" => $c_dimension,
51 "Grouped Dataset 1" => $df->dimension()->group(
"Dataset 1.1",
"Dataset 1.2")
54 $dataset = $dataset->withPoint(
62 $dataset = $dataset->withPoint(
70 $dataset = $dataset->withPoint(
81 $b1 = $b1->withColor($df->color(
"#12436D"));
83 $b2 = $b2->withColor($df->color(
"#28A197"));
85 $b3 = $b3->withColor($df->color(
"#801650"));
87 $g1 = $g1->withStacked(
true);
95 "Grouped Dataset 1" => $g1
99 $bar =
$f->chart()->bar()->vertical(
100 "A vertical partly stacked bar chart",
partly_stacked()
expected output: > ILIAS shows a base column-chart but with stacked bars in different colors...