Registry / Framework

framework · v0.1.0
Flamingo
Produce chart-ready axis limits and labeled tick spacing from raw data.
Use Flamingo
use vendor::flamingo::flamingo;
Run the example
nest demo flamingo@0.1.0
blyxc native-run flamingo-demo/main.blyx
Example source and expected output
use vendor::flamingo::flamingo;
fn main() {
let samples = [3, 11];
let include_zero = 1.0;
let intervals = 4.0;
let result = flamingo_axis(samples, include_zero, intervals);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
0
15
5
4
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 29d3cb8277 | 9992d9d13df88cf29495197be5e8fb142ebd0eaa32256b94108ce64afaa05082 |