mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
ae8ed8867d
* 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> |
||
---|---|---|
.. | ||
backend_termion.rs | ||
border_macro.rs | ||
stylize.rs | ||
terminal.rs | ||
widgets_barchart.rs | ||
widgets_block.rs | ||
widgets_calendar.rs | ||
widgets_canvas.rs | ||
widgets_chart.rs | ||
widgets_gauge.rs | ||
widgets_list.rs | ||
widgets_paragraph.rs | ||
widgets_table.rs | ||
widgets_tabs.rs |