Tui-bar-graph
A Ratatui widget to render bold, colorful bar graphs. Part of the tui-widgets suite by Joshka.


Uses the Colorgrad crate for gradient coloring.
GitHub Repository · API Docs · Examples · Changelog · Contributing
Installation
cargo add ratatui tui-bar-graph
Usage
Build a BarGraph with your data and render it in a widget area.
use ;
let data = vec!;
let bar_graph = new
.with_gradient
.with_bar_style
.with_color_mode;
frame.render_widget;
More widgets
For the full suite of widgets, see tui-widgets.
License
Copyright (c) Josh McKinney
This project is licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
See CONTRIBUTING.md.