@graphysdk/viz-engine— a framework-agnostic engine. You describe a chart as a spec — a small, immutable object built by composing mappings, geoms, scales and coordinate systems. No DOM, no React.@graphysdk/react-renderer— a React renderer that paints a spec to SVG, and owns layout, theming, formatting and interactivity.
1. Install the packages
.npmrc in your repository root (or user-level) with:
.npmrc
2. Render your first chart
A chart needs three things: your data, a spec describing how to draw it, and the renderer to paint it.3. Customize the chart
Everything beyond the data-to-ink mapping — titles, axes, legend, appearance — lives inconfig. Pipe a config(...) item onto the spec:
4. Theme and locale
GraphProvider accepts a theme ('light' or 'dark') and a formattingLocale for number, date and currency formatting:
sizing prop on GraphRenderer controls how the chart claims space — responsive fills its container, fixed takes explicit width/height, and keepAspectRatio scales to width while preserving a ratio.
Next steps
- Understand how a chart is built — the spec pipeline and the compile → render model
- Learn the data structure and how mappings reference columns
- Work through the core concepts — mappings, geoms, scales, coords
- Browse the chart types and build a line chart end to end

