Interface: ChartBaseProps
Common visual and behavior props for all charts
Extended by
Section titled “Extended by”Properties
Section titled “Properties”ariaLabel?
Section titled “ariaLabel?”
optionalariaLabel?:string
Accessibility label for screen readers
className?
Section titled “className?”
optionalclassName?:string
Additional CSS classes
colorPalette?
Section titled “colorPalette?”
optionalcolorPalette?:ChartColorPalette
Color palette to use. Auto-selected based on chart type if not specified.
- “categorical”: Distinct colors for different categories (bar, pie, line)
- “sequential”: Gradient for magnitude/intensity (heatmap)
- “diverging”: Two-tone for positive/negative values
colors?
Section titled “colors?”
optionalcolors?:string[]
Custom colors for series (overrides colorPalette)
height?
Section titled “height?”
optionalheight?:number
Chart height in pixels
Default
Section titled “Default”300onDataClick?
Section titled “onDataClick?”
optionalonDataClick?: (datum) =>void
Pointer-only: charts render to
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
options?
Section titled “options?”
optionaloptions?:Record<string,unknown>
Additional ECharts options to merge
selected?
Section titled “selected?”
optionalselected?:string|string[]
Controlled selection by category name. Matching data element(s) render at full prominence while the rest are dimmed. Drive it from your own state to reflect a cross-filter or selection. Categorical charts (bar, pie/donut) show emphasis; other chart types ignore it.
showLegend?
Section titled “showLegend?”
optionalshowLegend?:boolean
Show legend
testId?
Section titled “testId?”
optionaltestId?:string
Test ID for automated testing
title?
Section titled “title?”
optionaltitle?:string
Chart title
valueFormatter?
Section titled “valueFormatter?”
optionalvalueFormatter?:ChartValueFormatter
Formats measure values in the chart’s built-in value axes, tooltips, and
value labels. field is the corresponding yKey, so one formatter can
select a different format for each series.
For charts with multiple series on one value axis, axis ticks use the
first yKey; each tooltip uses its own series field.
optionalxKey?:string
X-axis field key. Auto-detected from schema if not provided.
optionalyKey?:string|string[]
Y-axis field key(s). Auto-detected from schema if not provided.