https://github.com/jonaylor89/hist
make histograms real quick
https://github.com/jonaylor89/hist
histogram rust terminal
Last synced: 3 months ago
JSON representation
make histograms real quick
- Host: GitHub
- URL: https://github.com/jonaylor89/hist
- Owner: jonaylor89
- License: mit
- Created: 2019-03-27T02:25:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2026-01-16T03:56:57.000Z (5 months ago)
- Last Synced: 2026-01-16T18:41:39.573Z (5 months ago)
- Topics: histogram, rust, terminal
- Language: Rust
- Homepage: https://crates.io/crates/v_hist
- Size: 2.42 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hist
Terminal histograms
----------------
```rust
extern crate v_hist;
extern crate rand;
use rand::Rng;
fn main() {
let mut h = v_hist::init();
let mut rng = rand::thread_rng();
// h.max_width = 50;
for x in 0..200 {
h.add_entry(format!("{}", x), rng.gen_range(0..3000)) ;
}
h.draw();
}
```
and Voila

----------------
Credit where credit is due: https://github.com/JustinMMiller/CUtils