Introducing a new way to review your PRs.

Read the announcement

reflex-dev / xy

Ultra-fast and customizable Python charts

View on GitHub

20 documents · Updated Nov 18, 2026

overview

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/** and web/**.
  • Browser interaction state is coordinated by the chart runtime rather than embedded in static export output; see web/** and python/**.
  • Native acceleration is accessed through defined Python/native binding boundaries; see rust/** and python/**.
  • 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