charton 0.4.1

A high-level, layered charting system for Rust, designed for Polars-first data workflows and multi-backend rendering.
Documentation
use charton::prelude::*;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let exe_path = r"F:\Programs\miniconda3\envs\cellpy\python.exe";
    let iris = load_dataset("iris")?;

    let raw_plotting_code = r#"
import altair as alt

features = [
    'sepal_length',
    'sepal_width',
]

chart = alt.Chart(iris).mark_circle().encode(
    alt.X(alt.repeat("column"), type="quantitative"),
    alt.Y(alt.repeat("row"), type="quantitative"),
    color='species'
).properties(
    width=130,
    height=105
).repeat(
    row=features,
    column=features
)
"#;
    Plot::<Altair>::build(data!(&iris)?)?
        .with_exe_path(exe_path)?
        .with_plotting_code(raw_plotting_code)
        .save("docs/src/images/altair.svg")?;

    Ok(())
}