Knowledge Base updated: 2026-11-17
xy Knowledge Base
Orientation
xy is a multi-language charting system with a Python chart API, a browser/WebGL runtime, Rust acceleration, Matplotlib compatibility, and a Reflex adapter.
Python figure definitions and payload construction bridge user-facing chart configuration to browser and native rendering paths. Browser state owns interactive view behavior, while native components provide accelerated raster, SVG, font, tile, and compute facilities.
Build, packaging, and benchmark tooling connect the language-specific components and validate release and performance behavior.
flowchart LR
P[Python chart API] --> D[Payload construction]
P --> M[Matplotlib compatibility]
P --> RFX[Reflex integration]
D --> B[Browser runtime]
B --> GL[WebGL resources]
B --> W[Worker and kernels]
B --> I[Interaction and animation]
P --> N[Rust acceleration engine]
N --> NP[Native rendering primitives]
N --> NK[Native kernels and Python bindings]
M --> MC[Matplotlib backends and canvas]
PKG[Build and packaging] --> P
PKG --> B
BENCH[Performance benchmarks] --> B
Glossary
- Figure model: The shared chart representation configured from Python and consumed by rendering paths.
- Payload: The transport-facing chart data and configuration representation delivered to the browser client.
- LOD: Level-of-detail policies and rendering paths for large or dense datasets.
- Display list: The rendering handoff used by Matplotlib-compatible backend and canvas paths.
- xy Matplotlib backend: The compatibility backend that translates Matplotlib-oriented plotting into xy rendering behavior.
Invariants
- Python chart data must cross an explicit payload boundary before browser rendering; see
python/**andweb/**. - Browser interaction state is coordinated by the chart runtime rather than embedded in static export output; see
web/**andpython/**. - Native acceleration is accessed through defined Python/native binding boundaries; see
rust/**andpython/**. - Matplotlib compatibility is maintained through backend and canvas integration layers; see
python/**/matplotlib/**. - Release validation spans Python, JavaScript, and native build artifacts; see build configuration and CI workflow patterns.
Routing table
python/**-> docs/python-chart-api.mdpython/**/data/**-> docs/data-ingestion-and-payloads.mdpython/**/payload/**-> docs/data-ingestion-and-payloads.mdpython/**/charts/**-> docs/chart-families-and-layout.mdpython/**/marks/**-> docs/chart-families-and-layout.mdpython/**/style/**-> docs/styling-themes-and-annotations.mdpython/**/themes/**-> docs/styling-themes-and-annotations.mdpython/**/interaction/**-> docs/interaction-and-view-state.mdpython/**/selection/**-> docs/interaction-and-view-state.mdpython/**/lod/**-> docs/level-of-detail-and-streaming.mdpython/**/streaming/**-> docs/level-of-detail-and-streaming.mdpython/**/export/**-> docs/export-and-static-rendering.mdweb/**-> docs/browser-rendering-runtime.mdweb/**/gl/**-> docs/webgl-rendering-resources.mdweb/**/render/**-> docs/webgl-rendering-resources.mdweb/**/worker/**-> docs/browser-worker-and-kernels.mdweb/**/kernels/**-> docs/browser-worker-and-kernels.mdweb/**/interaction/**-> docs/browser-interaction-and-animation.mdweb/**/animation/**-> docs/browser-interaction-and-animation.mdrust/**-> docs/rust-acceleration-engine.mdrust/**/raster/**-> docs/native-rendering-primitives.mdrust/**/svg/**-> docs/native-rendering-primitives.mdrust/**/kernels/**-> docs/native-kernels-and-python-bindings.mdrust/**/bindings/**-> docs/native-kernels-and-python-bindings.mdpython/**/matplotlib/**-> docs/matplotlib-pyplot-compatibility.mdpython/**/backends/**-> docs/matplotlib-backends-and-canvas.mdpython/**/canvas/**-> docs/matplotlib-backends-and-canvas.mdpython/**/reflex/**-> docs/reflex-integration.mdbenchmarks/**-> docs/performance-benchmarks.mdscripts/**/benchmark*-> docs/performance-benchmarks.md- pyproject.toml -> docs/build-packaging-and-release.md
- package.json -> docs/build-packaging-and-release.md
- Cargo.toml -> docs/build-packaging-and-release.md
.github/workflows/**-> docs/build-packaging-and-release.md