ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Bar.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
27 
28 interface Bar extends Component, JavaScriptBindable
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.
withBarConfigs(array $bar_configs)
Replace the given bars at creation with new ones.
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.
withLegendVisible(bool $legend_visible)
withTitle(string $title)
Replace the given title at creation with a new title.
withTooltipsVisible(bool $tooltips_visible)
Should the tooltips pop up when hovering over the bars in the chart?
withLegendPosition(string $legend_position)
On which side next to the chart should the legend be placed? Default is top.
withTitleVisible(bool $title_visible)