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

fix(Barchart): horizontal labels were not displayed #518

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

Valentin271
Copy link
Member

Fixed horizontal bars label not displayed.
Also adds ways to configure label truncation because it would be hard to use labels horizontally otherwise.

This fixes #499

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #518 (776230d) into main (5498a88) will increase coverage by 0.06%.
Report is 4 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #518      +/-   ##
==========================================
+ Coverage   89.98%   90.04%   +0.06%     
==========================================
  Files          40       40              
  Lines       11160    11245      +85     
==========================================
+ Hits        10042    10126      +84     
- Misses       1118     1119       +1     
Files Changed Coverage Δ
src/widgets/barchart.rs 93.25% <100.00%> (+0.56%) ⬆️

... and 2 files with indirect coverage changes

src/widgets/barchart.rs Outdated Show resolved Hide resolved
src/widgets/barchart.rs Outdated Show resolved Hide resolved
@Valentin271
Copy link
Member Author

Incorporated feedbacks in 5749466. Thanks @karthago1!

src/widgets/barchart.rs Outdated Show resolved Hide resolved
src/widgets/barchart.rs Show resolved Hide resolved
Fixed horizontal bars label not displayed.
Also adds ways to configure label truncation.
Copy link
Member

@joshka joshka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the PR

@joshka joshka merged commit c3155a2 into ratatui:main Sep 22, 2023
33 checks passed
@Valentin271 Valentin271 deleted the fix/horizontal-barchart-labels branch September 22, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Horizontal Barchart does not print labels
3 participants