ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Vertical.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
27class 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 {
33 parent::__construct($title, $dataset, $bar_configs, $group_configs);
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)
@inheritDoc