Interface: BaseChartProps
Properties
Section titled “Properties”chartType
Section titled “chartType”chartType:
ChartType
Chart type
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 (heatmap)
- “diverging”: Two-tone for positive/negative (correlation)
colors?
Section titled “colors?”
optionalcolors?:string[]
Custom colors (overrides colorPalette)
data:
ChartData
Chart data (Arrow Table or JSON array) - format is auto-detected
height?
Section titled “height?”
optionalheight?:number
Chart height in pixels
Default
Section titled “Default”300innerRadius?
Section titled “innerRadius?”
optionalinnerRadius?:number
Inner radius for pie/donut (0-100)
Default
Section titled “Default”0labelPosition?
Section titled “labelPosition?”
optionallabelPosition?:"center"|"outside"|"inside"
Label position for pie/donut
Default
Section titled “Default”"outside"
optionalmax?:number
Max value for heatmap color scale
optionalmin?:number
Min value for heatmap color scale
onDataClick?
Section titled “onDataClick?”
optionalonDataClick?: (datum) =>void
Fired when a data element (bar, slice, point) is clicked. Fire-and-forget: the return value is ignored (async handlers are fine — the chart never awaits). The handler receives a normalized ChartClickDatum.
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.
Only the built-in feature set is registered by this package, so options
referencing extra ECharts features (dataZoom, toolbox, markLine,
markArea, graphic, dataset, top-level axisPointer, …) require
registering them in your app via import { use } from "echarts/core".
This only works when your echarts resolves to the same module
instance/version as this package’s (the registry is a singleton;
duplicate echarts copies won’t share registrations).
orientation?
Section titled “orientation?”
optionalorientation?:Orientation
Chart orientation
Default
Section titled “Default”"vertical"selected?
Section titled “selected?”
optionalselected?:string|string[]
Controlled selection by category name. See ChartBaseProps.selected.
showArea?
Section titled “showArea?”
optionalshowArea?:boolean
Show area fill for radar charts
Default
Section titled “Default”trueshowLabels?
Section titled “showLabels?”
optionalshowLabels?:boolean
Show labels on pie/donut slices
Default
Section titled “Default”trueshowLegend?
Section titled “showLegend?”
optionalshowLegend?:boolean
Show legend
Default
Section titled “Default”trueshowSymbol?
Section titled “showSymbol?”
optionalshowSymbol?:boolean
Show data point symbols (line/area charts)
Default
Section titled “Default”falsesmooth?
Section titled “smooth?”
optionalsmooth?:boolean
Smooth line curves (line/area charts)
Default
Section titled “Default”truestacked?
Section titled “stacked?”
optionalstacked?:boolean
Stack series
Default
Section titled “Default”falsesymbolSize?
Section titled “symbolSize?”
optionalsymbolSize?:number
Symbol size for scatter charts
Default
Section titled “Default”8title?
Section titled “title?”
optionaltitle?:string
Chart title
valueFormatter?
Section titled “valueFormatter?”
optionalvalueFormatter?:ChartValueFormatter
Formats measure values. See ChartBaseProps.valueFormatter.
optionalxKey?:string
X-axis field key (auto-detected from schema if not provided)
yAxisKey?
Section titled “yAxisKey?”
optionalyAxisKey?:string
Y-axis field key for heatmap (the row dimension)
optionalyKey?:string|string[]
Y-axis field key(s) (auto-detected from schema if not provided)