3 declare(strict_types=1);
    21     $f = $DIC->ui()->factory();
    22     $df = new \ILIAS\Data\Factory();
    26     $c_dimension = $df->dimension()->cardinal([
"", 
"low", 
"medium", 
"high"]);
    27     $r_dimension = $df->dimension()->range($c_dimension);
    30     $dataset = $df->dataset([
    31         "Target" => $r_dimension,
    32         "Dataset 1" => $c_dimension,
    33         "Dataset 2" => $c_dimension,
    34         "Dataset 3" => $c_dimension,
    37     $dataset = $dataset->withPoint(
    40             "Target" => [0.99, 1.01],
    46     $dataset = $dataset->withPoint(
    49             "Target" => [2.99, 3.01],
    55     $dataset = $dataset->withPoint(
    58             "Target" => [2.99, 3.01],
    64     $dataset = $dataset->withPoint(
    67             "Target" => [1.99, 2.01],
    73     $dataset = $dataset->withPoint(
    76             "Target" => [2.99, 3.01],
    82     $dataset = $dataset->withPoint(
    85             "Target" => [0, 0.01],
    92     $dataset = $dataset->withAlternativeInformation(
    98             "Dataset 3" => 
"Custom 1"   101     $dataset = $dataset->withAlternativeInformation(
   107             "Dataset 3" => 
"Custom 2"   110     $dataset = $dataset->withAlternativeInformation(
   116             "Dataset 3" => 
"Custom 3"   119     $dataset = $dataset->withAlternativeInformation(
   122             "Target" => 
"medium",
   125             "Dataset 3" => 
"Custom 4"   128     $dataset = $dataset->withAlternativeInformation(
   134             "Dataset 3" => 
"Custom 5"   137     $dataset = $dataset->withAlternativeInformation(
   143             "Dataset 3" => 
"Custom 6"   149     $b1 = $b1->withRelativeWidth(1.1);
   150     $b1 = $b1->withColor($df->color(
"#000000"));
   152     $b2 = $b2->withRelativeWidth(0.6);
   153     $b2 = $b2->withColor($df->color(
"#12436D"));
   155     $b3 = $b3->withRelativeWidth(0.6);
   156     $b3 = $b3->withColor($df->color(
"#28A197"));
   158     $b4 = $b4->withRelativeWidth(0.6);
   159     $b4 = $b4->withColor($df->color(
"#801650"));
   169     $bar_chart = 
$f->chart()->bar()->horizontal(
   170         "A horizontal bar chart",
   174     $bar_chart = $bar_chart->withTitleVisible(
false);
   175     $x_axis = 
new XAxis();
   176     $x_axis = $x_axis->withMinValue(0);
   177     $x_axis = $x_axis->withMaxValue(3);
   178     $bar_chart = $bar_chart->withCustomXAxis($x_axis);
 
custom()
 expected output: > ILIAS shows a base horizontal bar chart but customized with e.g.