charton 0.4.1

A high-level, layered charting system for Rust, designed for Polars-first data workflows and multi-backend rendering.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use charton::prelude::*;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let df = load_dataset("iris")?;

    let chart = Chart::build(&df)?.mark_tick()?.encode((
        x("sepal_width"),
        y("species"),
        color("species"),
    ))?;

    chart.save("docs/src/images/strip.svg")?;

    Ok(())
}