Skip to main content

Overview

All editor panels must be rendered inside EditorProvider and GraphProvider to function correctly:

Size panel

Controls for setting graph size using presets or custom values.

Props

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.

Props

Sections

  • GraphTypeSection – Choose chart type (column, bar, line, pie, etc.)
  • GraphOptionsSection – Chart-specific options
  • LegendPositionSection – Control legend visibility and position
  • HeadlineNumberSection – Configure headline number display
  • NumberFormatSection – Number formatting options (prefix, suffix, decimals)

Custom composition

Axes panel

Customize the main and cross axes.

Props

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.

Props

Sections

  • ThemeSection – Select from dark or light mode
  • PaletteSection – Pick a graph color palette
  • ChartBackgroundSection – Set graph background color
  • ChartBorderSection – Set graph border style
  • HighlightColorSection – Set highlight color

Custom composition

Elements panel

Control visibility and styling of chart text elements.

Props

Sections

  • TextVisibilitySection – Toggle visibility of titles, labels and annotations
  • SourceSection – Add and edit data source attribution
  • TextSizeSection – 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 arrows
  • HighlightSection – Highlight specific data points, lines or groups of data points

Custom composition

Props

AnnotatePanel

CallOutSection

The CallOutSection accepts an optional hiddenButtons prop to hide specific buttons:
Or use CallOutSection directly:

Power-ups panel

Add goals, trend lines and average lines.

Props

Sections

  • GoalPowerUpSection – Add goal lines to set targets
  • TrendPowerUpSection – Add trend lines to show the trend of a series
  • AveragePowerUpSection – 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 the EditorPanel layout primitives.

Custom panel structure

A custom panel is built using EditorPanel.Root and EditorPanel.Section:

EditorPanel.Root props

Creating custom sections

Sections can have three layouts: fixed, collapsible or inline: