19 declare(strict_types=1);
35 $f = $DIC->ui()->factory();
36 $df = new \ILIAS\Data\Factory();
40 $c_dimension = $df->dimension()->cardinal();
43 $dataset = $df->dataset([
"Dataset" => $c_dimension]);
45 $dataset = $dataset->withPoint(
"Item 1", [
"Dataset" => 80]);
46 $dataset = $dataset->withPoint(
"Item 2", [
"Dataset" => 0]);
47 $dataset = $dataset->withPoint(
"Item 3", [
"Dataset" => 18]);
48 $dataset = $dataset->withPoint(
"Item 4", [
"Dataset" => 55]);
51 $bar_chart =
$f->chart()->bar()->vertical(
52 "A vertical bar chart",
base()
expected output: > ILIAS shows a column-chart with an maximum y-value of 80 and four entries with va...