3declare(strict_types=1);
 
   15    $f = 
$DIC->ui()->factory();
 
   16    $df = new \ILIAS\Data\Factory();
 
   17    $renderer = 
$DIC->ui()->renderer();
 
   20    $c_dimension = $df->dimension()->cardinal();
 
   23    $dataset = $df->dataset([
 
   24       "Dataset 1" => $c_dimension,
 
   25        "Dataset 2" => $c_dimension,
 
   26        "Dataset 3" => $c_dimension,
 
   29    $dataset = $dataset->withPoint(
 
   37    $dataset = $dataset->withPoint(
 
   45    $dataset = $dataset->withPoint(
 
   56    $b1 = $b1->withColor($df->color(
"#d38000"));
 
   58    $b2 = $b2->withColor($df->color(
"#307C88"));
 
   60    $b3 = $b3->withColor($df->color(
"#557b2e"));
 
   69    $bar = 
$f->chart()->bar()->vertical(
 
   70        "A vertical bar chart",
 
   74    $bar = 
$bar->withTitleVisible(
false);
 
   75    $bar = 
$bar->withLegendPosition(
"left");
 
   76    $y_axis = 
new YAxis();
 
   77    $y_axis = $y_axis->withPosition(
"right");
 
   78    $y_axis = $y_axis->withStepSize(10);
 
   79    $y_axis = $y_axis->withBeginAtZero(
false);
 
   80    $bar = 
$bar->withCustomYAxis($y_axis);
 
   83    return $renderer->render(
$bar);