Skip to content

Radar

Examples

Traffic channel engagement
MetricGoogle SearchDisplay AdsNewsletterSocial
Engagement72854595
Pages/Session68459035
Session Duration70409225
Conversion75308855
Retention65884278

API Reference

Types come from the public API. A dash indicates no default is documented here.

RadarChart props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<K, Ends> | undefined''The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default.
onEmit
Show type
((events: { readonly _tag: "HoverChanged"; readonly index: number | null; }) => NoInfer<Msg> | undefined) | { readonly HoverChanged: (event: { readonly _tag: "HoverChanged"; readonly index: number | null; }) => NoInfer<Msg> | undefined; } | undefined
—Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event.
props.data
Show type
readonly { readonly label: string; readonly values: { readonly [x: string]: number; }; readonly color?: string; }[]
Required
props.children
Show type
readonly ({ readonly kind: "area"; readonly props: { readonly index: number; readonly color?: string; readonly className?: string; readonly showGlow?: boolean; readonly showPoints?: boolean; readonly showStroke?: boolean; }; } | { readonly kind: "grid"; readonly props: { readonly stroke?: string; readonly strokeOpacity?: number; readonly className?: string; readonly showLabels?: boolean; }; } | { readonly kind: "axis"; readonly props: { readonly stroke?: string; readonly strokeOpacity?: number; readonly className?: string; }; } | { readonly kind: "labels"; readonly props: { readonly fontSize?: number; readonly offset?: number; readonly className?: string; readonly interactive?: boolean; }; })[]
Required
props.idstringRequired
props.ariaLabelstringRequired
props.metricsreadonly { readonly key: string; readonly label: string; }[]Required
props.style{ readonly [x: string]: string | number; }—
props.animateboolean—
props.sizenumber—
props.marginnumber—
props.classNamestring—
props.ariaDescriptionstring—
props.enterTransition
Show type
{ readonly delay?: number; readonly duration?: number; readonly ease?: string | readonly number[] | readonly (string | readonly number[])[]; readonly type?: unknown; readonly stiffness?: number; readonly damping?: number; readonly mass?: number; readonly bounce?: number; }
—
props.hoveredIndexnumber | nullnull
props.levelsnumber—
props.enterDurationMsnumber—
props.staggerScalenumber—
props.motionReplayKeystring—