Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(barchart): allow to render charts smaller than 3 lines #532

Merged
merged 1 commit into from
Sep 26, 2023

Commits on Sep 26, 2023

  1. feat(barchart): allow to render charts smaller than 3 lines

    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 <hichem.f@live.de>
    karthago1 committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    2906948 View commit details
    Browse the repository at this point in the history