| Crates.io | sparklines |
| lib.rs | sparklines |
| version | 0.3.0 |
| created_at | 2022-12-28 11:14:59.622377+00 |
| updated_at | 2025-05-28 12:14:49.651219+00 |
| description | Sparklines library |
| homepage | |
| repository | https://github.com/ekroon/sparklines |
| max_upload_size | |
| id | 746757 |
| size | 32,082 |
A Rust library for Sparklines.
Sparklines exposes two indexer implementations:
use sparklines::{AlgorithmicSpark, RangemapSpark};
let a = AlgorithmicSpark::default();
let r = RangemapSpark::default();
assert_eq!(a.spark(&[1.0, 2.0, 3.0]), "▁▅█");
assert_eq!(r.spark(&[1.0, 2.0, 3.0]), "▁▄█");
Dual licensed under MIT or APACHE 2.0 at your own choice.