graphy-editor

Installation
SKILL.md

Graphy editor

Start with a working chart: a GraphProvider with spec and data, as shown in the graphy-charts skill.

How editing works

  • Menus, panel controls, and application code dispatch Command objects from @graphysdk/react/editable. They share one undo history and one onSpecChange callback.
  • Use EditableGraphRenderer from @graphysdk/react/editable to enable editing. Its mode prop controls the available interactions. GraphRenderer has no editing layer, regardless of mode.
  • GraphProvider.onSpecChange returns the edited Spec as plain JSON after each completed edit. Save it and pass it back as spec to restore the chart. Edits do not change the data. The spec does not include the theme, so also pass theme when restoring.
  • The edit menu offers quick edits. The panel supports more settings, and commands support more still. For changes commands do not support, build a new spec with the authoring API.

Minimal editable chart

import { useRef, useState } from 'react';
import { GraphProvider, useGraphHistoryShortcuts, type Data, type GraphHandle, type Spec } from '@graphysdk/react';
import { EditableGraphRenderer } from '@graphysdk/react/editable';
Installs
53
GitHub Stars
6
First Seen
Aug 20, 2026