Unique identifier for the chart (used for DOM IDs).
OptionaltitleChart title displayed in text descriptions.
OptionalsubtitleChart subtitle.
OptionalcaptionChart caption.
Recharts data array. Each item is one data point with named fields.
OptionalchartChart type for simple mode (single chart type with one or more series).
Mutually exclusive with layers.
Key in data objects for x-axis values.
OptionalyKeys in data objects for y-axis values (simple mode).
Each key creates a separate data series.
Mutually exclusive with layers.
OptionallayersLayer configurations for composed charts (composed mode).
Each layer defines a chart type and data key.
Mutually exclusive with chartType/yKeys.
OptionalxX-axis label.
OptionalyY-axis label.
OptionalorientationBar/box chart orientation. Defaults to vertical.
OptionalfillDisplay names for each series in stacked/dodged/normalized bar charts.
Maps 1:1 with yKeys — the i-th fillKey names the i-th yKey.
When omitted, the yKey strings are used as fill labels.
OptionalbinHistogram bin range configuration.
Required when chartType is 'histogram'.
OptionalselectorCustom CSS selector override for SVG highlighting.
By default the adapter generates selectors from Recharts' built-in class names. For multi-series charts, CSS selectors cannot reliably distinguish between series, so highlighting is disabled.
To enable highlighting for multi-series charts, add a custom
className to each Recharts component and pass the selector here:
Configuration for the Recharts-to-MAIDR adapter.
Supports two configuration modes:
chartTypeandyKeysfor a single chart type with one or more data series.layersfor mixed chart types (e.g., bar + line).Example: Simple bar chart
Example: Stacked bar chart
Example: Histogram
Example: Composed chart (bar + line)