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
- GraphProvider wraps your entire editor and receives the
configandonChangehandler - EditorProvider provides context for all editor components
- Graph renders the visualization
- Editor panels (like
GraphPanel) let users modify the config
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:- GraphPanel - Chart type, legend, headline numbers, number formatting
- AxesPanel - Axis labels, ranges, tick marks
- ColorPanel - Themes, color palettes, borders
- ElementsPanel - Text visibility, source attribution, text size
- AnnotatePanel - Annotations, highlights, call-outs
- PowerUpPanel - Goal lines, trend lines, average lines
- SizePanel - Graph dimensions and presets
Complete example
Here’s a more complete editor with multiple panels:Next steps
- See all GraphProvider props and EditorProvider props
- Explore editor panels to learn about all available components
- Use the DataTable component to let users edit data
- Learn about custom panel composition to build custom editors