An open API service indexing awesome lists of open source software.

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

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

![screenshot](assets/screenshot.png)

----------------

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