Sparklines library for Rust applications.
A Rust port of spark.
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);
MIT