/rspark

▁▂▆▇▁▄█▁ Sparklines for Rust apps

Primary LanguageRustMIT LicenseMIT

rspark ▁▂▆▇▁▄█▁

Build Crate

Sparklines library for Rust applications.
A Rust port of spark.

Usage

Add rspark to your Cargo.toml:

[dependencies]
rspark = "0.2.0"

Example:

let v = vec![2, 250, 670, 890, 2, 430, 11, 908, 123, 57];
let res = rspark::render(&v).unwrap();
assert_eq!("▁▂▆▇▁▄▁█▁▁", res);

License

MIT