Overview
All editor panels must be rendered insideEditorProvider and GraphProvider to function correctly:
Size panel
Controls for setting graph size using presets or custom values.Sections
SizePresetsSection– Predefined size options (e.g., social media formats)CustomSizeSection– Custom width and height inputs
Custom composition
Graph panel
Core graph configuration including type, legend and number formatting.Sections
GraphTypeSection– Choose chart type (column, bar, line, pie, etc.)GraphOptionsSection– Chart-specific optionsLegendPositionSection– Control legend visibility and positionHeadlineNumberSection– Configure headline number displayNumberFormatSection– Number formatting options (prefix, suffix, decimals)
Custom composition
Axes panel
Customize the main and cross axes.Sections
MainAxisSection– Configure the primary axis (usually y-axis)CrossAxisSection– Configure the secondary axis (usually x-axis)
Custom composition
Color panel
Manage graph colors, backgrounds and border styles.Sections
ThemeSection– Select from dark or light modePaletteSection– Pick a graph color paletteChartBackgroundSection– Set graph background colorChartBorderSection– Set graph border styleHighlightColorSection– Set highlight color
Custom composition
Elements panel
Control visibility and styling of chart text elements.Sections
TextVisibilitySection– Toggle visibility of titles, labels and annotationsSourceSection– Add and edit data source attributionTextSizeSection– Adjust font sizes for graph elements
Custom composition
Annotate panel
Add annotations like call-outs and highlights to draw attention to specific data points.Sections
CallOutSection– Text annotations, arrows, boxes and difference arrowsHighlightSection– Highlight specific data points, lines or groups of data points
Custom composition
Props
AnnotatePanel
| Prop | Type | Description |
|---|---|---|
closePanel | () => void | Optional callback invoked when panel should close |
callOutProps | CallOutSectionProps | Optional props to pass to the CallOutSection |
CallOutSection
TheCallOutSection accepts an optional hiddenButtons prop to hide specific buttons:
| Prop | Type | Description |
|---|---|---|
hiddenButtons | CallOutButton[] | Array of button names to hide. Options: 'text', 'arrow', 'shape', 'differenceArrows' |
CallOutSection directly:
Power-ups panel
Add goals, trend lines and average lines.Sections
GoalPowerUpSection– Add goal lines to set targetsTrendPowerUpSection– Add trend lines to show the trend of a seriesAveragePowerUpSection– Add average lines to show the average value of a series
Custom composition
Panel composition
All panels support custom composition by passing children. This allows you to:- Reorder sections within a panel
- Include only specific sections
- Add custom controls alongside built-in sections
Building a custom panel
You can build completely custom panels and sections using theEditorPanel layout primitives.
Custom panel structure
A custom panel is built usingEditorPanel.Root and EditorPanel.Section:
Creating custom sections
Sections can have three layouts:fixed, collapsible or inline: