ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Vertical.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 Vertical extends Bar implements C\Chart\Bar\Vertical
28 {
29  protected YAxis $y_axis;
30 
31  public function __construct(string $title, Dataset $dataset, array $bar_configs = [], array $group_configs = [])
32  {
34  $this->y_axis = new YAxis();
35  }
36 
37  public function getIndexAxis(): string
38  {
39  return "x";
40  }
41 
42  public function withCustomYAxis(YAxis $y_axis): self
43  {
44  $clone = clone $this;
45  $clone->y_axis = $y_axis;
46  return $clone;
47  }
48 
49  public function getYAxis(): YAxis
50  {
51  return $this->y_axis;
52  }
53 }
__construct(string $title, Dataset $dataset, array $bar_configs=[], array $group_configs=[])
Definition: Vertical.php:31
__construct(Container $dic, ilPlugin $plugin)