ILIAS  release_8 Revision v8.24
Bar.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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 withTitleVisible(bool $title_visible): self;
59
60 public function isTitleVisible(): bool;
61
62 public function withLegendVisible(bool $legend_visible): self;
63
64 public function isLegendVisible(): bool;
65
72 public function withLegendPosition(string $legend_position): self;
73
74 public function getLegendPosition(): string;
75
79 public function withTooltipsVisible(bool $tooltips_visible): self;
80
81 public function isTooltipsVisible(): bool;
82}
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.
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Axis.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.