drilldown
Configuration Structure
drilldown: {}Opt-in navigation that lets a reader click a data point to open a child level, with a breadcrumb trail and back navigation. Requires the tree-shakeable Drilldown feature (import 'apexcharts/features/drilldown'; already included in the full build). Works with bar, column, pie, donut, treemap, and heatmap. See the Drilldown guide for a walkthrough.
enabled
falseMaster switch. When false the feature stays inert even if it was imported.
series
[]The child levels, each referenced by a data point's drilldown id. A level is an object shaped like this:
{
id: 'mobile', // matches a point's `drilldown` id
name: 'Mobile by OS', // breadcrumb label and single-series name
data: [ // single-series data (use this OR `series`)
{ x: 'iOS', y: 30, drilldown: 'mobile-ios' },
{ x: 'Android', y: 23 }
]
}
A level may also override the presentation applied while it is shown: chart (type, stacked, stackType), xaxis, yaxis, colors, plotOptions, fill, and legend.
id
Unique id referenced by a data point's drilldown field.
name
Display name used by the breadcrumb and as the single-series child series name.
data
Child data points for a single-series level. Use this or series, not both.
series
Full multi-series array for a grouped or stacked child level. Use this or data, not both.
breadcrumb
The trail from the root level to the current one, with back navigation to any ancestor. Set breadcrumb: false to hide it and drive navigation yourself.
show
Show the breadcrumb trail.
position
Where the breadcrumb sits.
Available Options:
- top-left
- top-right
separator
String placed between breadcrumb levels.
rootLabel
Label for the top (root) level in the trail.
offsetX
Horizontal shift of the breadcrumb.
offsetY
Vertical shift of the breadcrumb.
formatter
Customise each breadcrumb label. Receives (label, { index, depth }) and returns the string to display.
animation
Controls the drill transition.
enabled
trueGate whether the drill transition animates at all.
zoomFromPoint
falseAnchor the transition at the clicked point so the child unfolds outward from it (and settles back on drill-up) instead of re-rendering. A gentle scale layered on the SVG.
speed
260Base transition duration in milliseconds, used only when zoomFromPoint is true.
onDrillDown
Async resolver called when a drillable point has no matching entry in series. Receives { point, seriesIndex, dataPointIndex } and returns (or resolves to) the child level to open, so levels can be fetched on demand. If it throws or rejects, the drillDownError event fires and the chart stays put.