Skip to content

Radar Chart ​

One spoke per category; polygons grow from the centre. Labels hide when the chart gets too small.

Usage ​

Approximate web preview — the HarmonyOS rendering is the reference.

Dots + circle grid ​

Approximate web preview — the HarmonyOS rendering is the reference.

Multiple + legend ​

Approximate web preview — the HarmonyOS rendering is the reference.

Lines only ​

Approximate web preview — the HarmonyOS rendering is the reference.

API ​

Extracted from the @Param / @Event / @BuilderParam declarations in the library sources.

SRadarChart ​

shadcn "Radar Chart": one spoke per data row (≥ 3), one filled polygon per series of config. Polygons grow from the centre on appear and morph on data / legend changes. Tap or hover near a spoke for the tooltip of that category. Spoke labels are hidden automatically when the chart is too small for them.

PropTypeDefaultDescription
configSparkChartConfignew SparkChartConfig([])
dataSparkChartRow[][]
chartHeightnumber250
gridShapeSparkRadarGrid
SparkRadarGrid = 'polygon' | 'circle'
'polygon'
dotsbooleanfalse
fillAlphanumber0.6polygon fill opacity (0 → outline only)
lineWidthnumber0outline width in vp (0 → none)
labelsbooleantrue
tooltipbooleantrue
legendbooleanfalse
indicatorSparkChartIndicator
SparkChartIndicator = 'dot' | 'line' | 'dashed'
'dot'
labelFormatter(label: string) => stringidentityLabel
valueFormatter(value: number) => stringdefaultValue
emptyTextResourceStr$r('app.string.spark_no_data')
EventTypeDefaultDescription
onActiveChange(index: number) => void() => { }

MIT Licensed