Radar
Examples
| Metric | Google Search | Display Ads | Newsletter | Social |
|---|---|---|---|---|
| Engagement | 72 | 85 | 45 | 95 |
| Pages/Session | 68 | 45 | 90 | 35 |
| Session Duration | 70 | 40 | 92 | 25 |
| Conversion | 75 | 30 | 88 | 55 |
| Retention | 65 | 88 | 42 | 78 |
API Reference
Types come from the public API. A dash indicates no default is documented here.
RadarChart props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<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 typereadonly { readonly label: string; readonly values: { readonly [x: string]: number; }; readonly color?: string; }[] | Required | |
props.children | Show typereadonly ({ 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.id | string | Required | |
props.ariaLabel | string | Required | |
props.metrics | readonly { readonly key: string; readonly label: string; }[] | Required | |
props.style | { readonly [x: string]: string | number; } | — | |
props.animate | boolean | — | |
props.size | number | — | |
props.margin | number | — | |
props.className | string | — | |
props.ariaDescription | string | — | |
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.hoveredIndex | number | null | null | |
props.levels | number | — | |
props.enterDurationMs | number | — | |
props.staggerScale | number | — | |
props.motionReplayKey | string | — |