Components

Customized

Access chart internal state to render custom SVG elements

<Customized> is a renderless component that exposes chart internal state via its #default scoped slot, letting you render arbitrary SVG elements with full access to computed chart data.

Basic usage

Render a custom annotation using chart dimensions and offset:

Access graphical items

Use formattedGraphicalItems to read registered graphical items and their data:

Slot props

PropTypeDescription
formattedGraphicalItemsFormattedGraphicalItem[]All registered graphical items with type, dataKey, and settings
chartWidthnumberTotal chart width
chartHeightnumberTotal chart height
offset{ top, right, bottom, left }Plot area offset (after margins and axes)

FormattedGraphicalItem

FieldTypeDescription
typestringItem type ('line', 'bar', 'area', 'scatter', 'pie', 'radar', 'radialBar', 'funnel')
dataKeyDataKeyData key used by the item
propsobjectFull item settings (axis IDs, stack config, etc.)
Copyright © 2026