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: add new tui-bar-graph crate #63

Merged
merged 1 commit into from
Mar 4, 2025
Merged

feat: add new tui-bar-graph crate #63

merged 1 commit into from
Mar 4, 2025

Conversation

joshka
Copy link
Owner

@joshka joshka commented Mar 4, 2025

Braille demo

Solid demo

use tui_bar_graph::{BarGraph, BarStyle, ColorMode};

let data = vec![0.0, 0.1, 0.2, 0.3, 0.4, 0.5];
let bar_graph = BarGraph::new(data)
    .with_gradient(colorgrad::preset::turbo())
    .with_bar_style(BarStyle::Braille)
    .with_color_mode(ColorMode::VerticalGradient);
frame.render_widget(bar_graph, area);

@joshka joshka merged commit c24f045 into main Mar 4, 2025
11 checks passed
@joshka joshka deleted the jm/tui-bar-graph branch March 4, 2025 06:28
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 63.43284% with 49 lines in your changes missing coverage. Please review.

Project coverage is 71.10%. Comparing base (7c4bf99) to head (fb77257).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tui-bar-graph/src/lib.rs 63.43% 49 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
- Coverage   71.51%   71.10%   -0.42%     
==========================================
  Files          15       16       +1     
  Lines        2503     2637     +134     
==========================================
+ Hits         1790     1875      +85     
- Misses        713      762      +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants