ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Bar.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
29{
33 public function withTitle(string $title): self;
34
35 public function getTitle(): string;
36
40 public function withDataset(Dataset $dataset): self;
41
45 public function getDataset(): Dataset;
46
51 public function withBarConfigs(array $bar_configs): self;
52
56 public function getBarConfigs(): array;
57
58 public function withGroupConfigs(array $group_configs): self;
59
63 public function getGroupConfigs(): array;
64
65 public function withTitleVisible(bool $title_visible): self;
66
67 public function isTitleVisible(): bool;
68
69 public function withLegendVisible(bool $legend_visible): self;
70
71 public function isLegendVisible(): bool;
72
79 public function withLegendPosition(string $legend_position): self;
80
81 public function getLegendPosition(): string;
82
86 public function withTooltipsVisible(bool $tooltips_visible): self;
87
88 public function isTooltipsVisible(): bool;
89}
withDataset(Dataset $dataset)
Replace the given dataset at creation with a new one.
withTitleVisible(bool $title_visible)
withTooltipsVisible(bool $tooltips_visible)
Should the tooltips pop up when hovering over the bars in the chart?
withTitle(string $title)
Replace the given title at creation with a new title.
withBarConfigs(array $bar_configs)
Replace the given bars at creation with new ones.
withGroupConfigs(array $group_configs)
withLegendPosition(string $legend_position)
On which side next to the chart should the legend be placed? Default is top.
withLegendVisible(bool $legend_visible)
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface to be extended by components that have the possibility to bind to Javascript.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.