Skip to main content
The Graphy Editor provides ready-to-use UI components that let users customize graphs visually. It includes panels for editing data, styling, annotations and more.

Installation

Install the editor package alongside the core SDK:

Basic setup

The editor requires two providers: GraphProvider from @graphysdk/core and EditorProvider from @graphysdk/editor.

How it works

  1. GraphProvider wraps your entire editor and receives the config and onChange handler
  2. EditorProvider provides context for all editor components
  3. Graph with mode="editor" renders an editable chart (inline title editing, annotations etc.)
  4. Editor panels (like GraphPanel) let users modify the config
When users interact with editor panels, the onChange callback receives the updated config, which you can save to your state or database.

Available editor panels

The editor includes several pre-built panels:

Complete example

Here’s a more complete editor with multiple panels:

Next steps