Blyx Nest Blyx language
Registry / Framework
framework · v0.1.0

Flamingo

Produce chart-ready axis limits and labeled tick spacing from raw data.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.0Download ZIP29d3cb82779992d9d13df88cf29495197be5e8fb142ebd0eaa32256b94108ce64afaa05082