@graphysdk/react. One package builds the spec and renders the chart. The “Powered by Graphy” mark is on by default.
1. Install the package
- React 19 —
react@^19.0.0is a peer of the package. - Nothing else for a read-only chart — the rich-text editor behind the editing surface is an optional peer, so a chart you only paint pulls in no
@tiptap/*package. See Editing if you mount one. moduleResolution: "bundler"(ornode16/nodenext) in yourtsconfig.json— the packages ship anexportsmap, which the legacy"node"resolution skips.- A bundler that processes CSS imports from
node_modules— Vite, Next.js and webpack withcss-loaderall do. There is no stylesheet to import: each entry point injects its own CSS.
2. Render your first chart
A chart needs three things: your data, a spec describing how to draw it, and the React surface to paint it — all from@graphysdk/react.
3. Customize the chart
The chart’s chrome — titles, axes, legend, layout — lives inconfig. Pipe a config(...) item onto the spec:
4. Restyle it
Paint — colors, stroke widths, corner rounding, fonts — lives in a stylesheet on the spec. Pipe astyles(...) item in the same way. Redefining a built-in token restyles every default that reads it; a style.* entry targets one thing:
5. Color scheme and locale
GraphProvider accepts a colorScheme ('light' or 'dark', defaulting to 'light') and a formattingLocale for number, date and currency formatting:
GraphRenderer takes a handful of props of its own:
sizing— how the chart claims space.responsivefills its container,fixedtakes explicitwidth/height, andkeepAspectRatioscales to the container width from anintrinsicWidth+intrinsicHeight(or either one plus anaspectRatio).animation—trueby default. Passfalseto turn intro and transition animation off, or an object ({ intro, transitions }) to tune each;introacceptsenabled,durationScale,stagger,staggerOrderandmaxAnimatedGeoms. A reduced-motion preference disables animation regardless.showTooltips—trueby default.slots— per-region component overrides. See Slots.
Editing
@graphysdk/react/editable mounts a rich-text editor over the chart’s title, caption and text annotations, and it is built on TipTap v3. Those packages are declared as optional peers so a read-only install skips them; add them yourself when you import that entry:
Using the engine and renderer separately
If you want the mark off, or you are not in React, import those packages yourself: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
- Read licence and evaluation before you put a chart on a public page

