Skip to content

Commit

Permalink
feat(barchart): render charts smaller than 3 lines (ratatui-org#532)
Browse files Browse the repository at this point in the history
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

Add an internal structure `LabelInfo` which stores the reserved height
for the labels (0, 1 or 2) and also whether the labels will be shown.

Fixes ratatui-org#513

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>
  • Loading branch information
karthago1 authored and test committed Oct 6, 2023
1 parent 90b05a7 commit 52338c4
Show file tree
Hide file tree
Showing 2 changed files with 327 additions and 244 deletions.

0 comments on commit 52338c4

Please sign in to comment.