Skip to content

jonaylor89/hist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hist

Terminal histograms


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


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

Releases

No releases published

Packages

No packages published

Languages