Skip to content

Commit

Permalink
feat(barchart): allow to render charts smaller than 3 lines
Browse files Browse the repository at this point in the history
Add an internal structure `LabelInfo`, which stores the reserved height
for the labels (0, 1 or 2) and also the state of the labels,
whether they will be shown or not.

The bar values are not shown, if the value width is equal the bar width
and the bar is height is less than one line

fixes ratatui-org#513

Signed-off-by: Ben Fekih, Hichem <[email protected]>
  • Loading branch information
karthago1 committed Sep 25, 2023
1 parent 32e4619 commit ac0c627
Show file tree
Hide file tree
Showing 2 changed files with 311 additions and 242 deletions.
Loading

0 comments on commit ac0c627

Please sign in to comment.