back to home

wangjiawen2013 / charton

Grammar of Graphics in Rust

139 stars
7 forks
1 issues
RustJupyter NotebookRenderScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing wangjiawen2013/charton in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/wangjiawen2013/charton)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Charton - A versatile plotting library for Rust **Altair-style declarative plotting for Rust. High-performance, Polars-native, and Wasm-ready.** > *"Really nice project. ... This works perfectly as an ecosystem."* > — **Ritchie Vink**, Creator of Polars **Charton** is a high-performance Rust plotting library featuring a declarative API inspired by Altair. It provides native Polars support and bridges the gap to the Python visualization ecosystem (Altair/Matplotlib). Integrated with evcxr_jupyter, it enables seamless interactive data exploration in notebooks. Altair Matplotlib Stacked Bar Chart Grouped Bar With Errorbar Density Histogram 2d Density Chart Heatmap Grouped Boxplot Cumulative Frequency Distribution Pie Donut Rose Nightingale Installation Add to : Quick Start Charton provides a high-level, declarative API for Polars. Standard visualizations can be generated using a concise one-liner syntax: Layered Grammar Inspired by the Grammar of Graphics (as seen in and ), Charton replaces rigid templates with a modular, layer-based system. Visualizations are constructed by stacking atomic marks, offering infinite flexibility beyond fixed chart types. Charton can also leverages Rust’s functional paradigms, enabling infinite layer composition via fluent chaining or iterator folding. This allows for effortless, dynamic generation of complex multi-layered plots. Interactive Notebooks (Jupyter) Charton integrates with evcxr_jupyter for interactive data exploration. Replacing .save() with .show() renders SVGs directly within notebook cells: WebAssembly and Frontend Charton supports WebAssembly and modern web frontend; please refer to Charton Docs for details. Industrial-Grade Visualization Charton scales the Grammar of Graphics to heavy-duty production. By adopting the same proven philosophy as ggplot2, Altair, and the evolving ECharts, it validates its architecture as the industry standard, delivering strict type safety and zero-copy Polars integration for robust pipelines under extreme loads. This is powered by a rigorous Scale Arbitration engine that consolidates data domains into a "Single Source of Truth," ensuring absolute mathematical consistency and seamless cross-plot mapping while eliminating the fragile, hard-coded patches and silent overrides common in template-based tools. *This figure demonstrates semantic synchronization in Charton. Heterogeneous samples (point layer) are anchored to a global background (bar layer). By enforcing a single mathematical truth across all layers, Charton maintains absolute color consistency, ensuring samples are accurately contextualized within the global background.* Publish Quality Designed for precision, Charton provides pixel-perfect control over complex marks. Whether it is a multi-layered ErrorBar for medical research or a high-density scatter plot for bioinformatics, Charton delivers the aesthetic rigor required by top-tier journals like *Nature*, *Science*, and *Cell*. Performance Benchmark *Benchmarks are currently in progress.* Documentation Please go to the Charton Docs for full documentation. License Charton is licensed under the **Apache License 2.0**.