@retikz/plot
v0.1.0
Published
retikz plot (Tier 2): JSON-serializable grammar-of-graphics Plot IR that lowers to @retikz/core.
Maintainers
Readme
@retikz/plot
@retikz/plot is retikz's Tier 2 visualization package. It defines a
JSON-serializable, grammar-of-graphics Plot IR and lowers that IR to
@retikz/core primitives through the core composite pipeline.
- Data stays outside the IR. A plot stores a named data reference
(
data.reference) and an optional data model; dataset values are supplied tolowerPlots(datasets)at compile time. @retikz/dataowns the shared JSON data models, field resolution, and transform pipeline used by visualization packages.@retikz/plot-reactprovides the<Plot>component and JSX authoring DSL.@retikz/plot-vanillaprovides plainplot(), Kernel Vanilla embedding, andrenderPlot()for framework-free and server-side rendering workflows.
Install
pnpm add @retikz/plotThis package is ESM-only and requires Node.js 24 or newer. 本包仅发布 ES modules,要求 Node.js 24 或更高版本。
import { lowerPlots } from '@retikz/plot';See the plot architecture and plot design decisions for the underlying model and design rationale.
