Files
ratatui/examples
Hichem ae8ed8867d feat(barchart): enable barchart groups (#288)
* feat(barchart): allow to add a group of bars

Example: to show the revenue of different companies:
┌────────────────────────┐
│             ████       │
│             ████       │
│      ████   ████       │
│ ▄▄▄▄ ████   ████ ████  │
│ ████ ████   ████ ████  │
│ ████ ████   ████ ████  │
│ █50█ █60█   █90█ █55█  │
│    Mars       April    │
└────────────────────────┘
new structs are introduced: Group and Bar.
the data function is modified to accept "impl Into<Group<'a>>".

a new function "group_gap" is introduced to set the gap between each group

unit test changed to allow the label to be in the center

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>

* feat(barchart)!: center labels by default

The bar labels are currently printed string from the left side of
bar. This commit centers the labels under the bar.

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>

---------

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>
2023-07-13 10:27:08 +00:00
..
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00
2023-07-10 22:59:01 +00:00