19 declare(strict_types=1);
39 $f = $DIC->ui()->factory();
40 $df = new \ILIAS\Data\Factory();
44 $c_dimension = $df->dimension()->cardinal();
47 $dataset = $df->dataset([
48 "Dataset 1" => $c_dimension,
49 "Dataset 2" => $c_dimension,
50 "Dataset 3" => $c_dimension,
53 $dataset = $dataset->withPoint(
61 $dataset = $dataset->withPoint(
69 $dataset = $dataset->withPoint(
80 $b1 = $b1->withColor($df->color(
"#12436D"));
82 $b2 = $b2->withColor($df->color(
"#28A197"));
84 $b3 = $b3->withColor($df->color(
"#801650"));
93 $bar =
$f->chart()->bar()->vertical(
94 "A vertical bar chart",
98 $bar =
$bar->withTitleVisible(
false);
99 $bar =
$bar->withLegendPosition(
"left");
100 $y_axis =
new YAxis();
101 $y_axis = $y_axis->withPosition(
"right");
102 $y_axis = $y_axis->withStepSize(10);
103 $y_axis = $y_axis->withBeginAtZero(
false);
104 $bar =
$bar->withCustomYAxis($y_axis);
custom()
expected output: > ILIAS shows a base column-chart but customized.