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 polars::prelude::*;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let df = load_dataset("mtcars")?
        .lazy()
        .with_columns([col("gear").cast(DataType::String)])
        .collect()?;

    Chart::build(&df)?
        .mark_point()?
        .encode((x("wt"), y("mpg"), color("gear"), shape("gear"), size("mpg")))?
        .coord_flip()
        .configure_theme(|t| t.with_x_tick_label_angle(-45.0))
        .with_title("abc")
        .save("docs/src/images/scatter.svg")?;

    Ok(())
}