ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Horizontal.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\UI\Component as C;
26 
27 class Horizontal extends Bar implements C\Chart\Bar\Horizontal
28 {
29  protected XAxis $x_axis;
30 
31  public function __construct(string $title, Dataset $dataset, array $bar_configs = [], array $group_configs = [])
32  {
34  $this->x_axis = new XAxis();
35  }
36 
37  public function getIndexAxis(): string
38  {
39  return "y";
40  }
41 
42  public function withCustomXAxis(XAxis $x_axis): self
43  {
44  $clone = clone $this;
45  $clone->x_axis = $x_axis;
46  return $clone;
47  }
48 
49  public function getXAxis(): XAxis
50  {
51  return $this->x_axis;
52  }
53 }
__construct(string $title, Dataset $dataset, array $bar_configs=[], array $group_configs=[])
Definition: Horizontal.php:31
__construct(Container $dic, ilPlugin $plugin)