Crates.io | tui-bar-graph |
lib.rs | tui-bar-graph |
version | |
source | src |
created_at | 2025-03-04 06:29:57.823686+00 |
updated_at | 2025-03-05 01:48:50.662229+00 |
description | A Ratatui widget for rendering pretty bar graphs in the terminal |
homepage | |
repository | https://github.com/joshka/tui-widgets |
max_upload_size | |
id | 1576822 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A Ratatui widget for displaying pretty bar graphs
Uses the Colorgrad crate for gradient coloring.
cargo add ratatui tui-bar-graph
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);