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