asciigraph-rs 0.1.5

Lightweight ASCII line graphs for the terminal
Documentation
use asciigraph::{plot, Config, ZeroLine};

fn main() {
    let data = vec![
        3.0, 2.0, 1.0, 0.0, -1.0, -2.0, -3.0, -2.0, -1.0, 0.0,
        1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -1.0, -2.0, -1.0, 0.0,
        1.0, 3.0, 5.0, 3.0, 1.0, -1.0, -3.0, -5.0, -3.0, -1.0,
    ];
    let graph = plot(&data, Config::default().zero_line(ZeroLine::new()));
    println!("{}", graph);

    // Output:
    //  5.00 ┤                     ╭╮
    //  4.00 ┤                     ││
    //  3.00 ┼╮          ╭╮       ╭╯╰╮
    //  2.00 ┤╰╮        ╭╯╰╮      │  │
    //  1.00 ┤ ╰╮      ╭╯  ╰╮    ╭╯  ╰╮
    //  0.00 ┤──╰╮────╭╯────╰╮──╭╯────│─────
    // -1.00 ┤   ╰╮  ╭╯      ╰╮╭╯     ╰╮  ╭
    // -2.00 ┤    ╰╮╭╯        ╰╯       │  │
    // -3.00 ┤     ╰╯                  ╰╮╭╯
    // -4.00 ┤                          ││
    // -5.00 ┤                          ╰╯
}