Skip to content

Radial Chart

Overview

0006121802:14
21,951merged by 14:30

Pull requests

0006121802:14
21,951merged by 14:30

Today vs. yesterday

00061218
21,912merged by 14:30

Time axis

JanFebMarAprMayJunJulAugSepOctNovDec40°F60°F80°F100°F
49.4°FToday
54.2°F normal

Categories

CATXNYFLILPAOHMIGANCNJVAWAAZMAINTNMOMDWIMNCOALSCLAKYOROKCTIAMSARKSUTNVNMWVNEIDMENHHIRIMTDESDAKNDVTDCWY10M20M30M40M
304MU.S. population

Angular rings

0%25%50%75%100%
65%used across devices
2,151 of 3,328 GB

Patterned dots

00061218
19 kWhkWh by 15:00

API Reference

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

RadialChart 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.datareadonly { readonly [x: string]: string | number | null; }[]Required
props.idstringRequired
props.ariaLabelstringRequired
props.series
Show type
readonly { readonly dataKey: string; readonly label?: string; readonly opacity?: number; readonly color?: string; readonly rampFrom?: number; readonly emphasize?: boolean; }[]
Required
props.layers
Show type
readonly ({ readonly kind: "axis"; readonly props: { readonly labelOrientation?: "horizontal" | "radial" | "tangential"; readonly valueTicks?: number | readonly number[]; readonly valueTickFormat?: "number" | "compact" | "percent" | "temperature"; readonly showCircle?: boolean; readonly showTicks?: boolean; readonly tickStep?: number; }; } | { readonly kind: "dot-bar"; readonly props: { readonly layout?: "columns" | "grid"; readonly rows?: number; readonly dotSize?: number; readonly fadedOpacity?: number; readonly patterns?: { readonly [x: string]: { readonly stroke?: string; readonly strokeWidth?: number; readonly preset?: "diagonal-up" | "diagonal-down" | "dots" | "cross"; }; }; readonly maxValue?: number; readonly annotations?: readonly { readonly label: string; readonly index: number; readonly color?: string; }[]; readonly ghostDataKey?: string; readonly ghostColor?: string; readonly ghostOpacity?: number; readonly ghostDotSize?: number; readonly rampExtent?: number; }; } | { readonly kind: "bar"; readonly props: { readonly gap?: number; readonly fadedOpacity?: number; readonly cornerRadius?: number; readonly maxValue?: number; }; } | { readonly kind: "ring-bar"; readonly props: { readonly fadedOpacity?: number; readonly cornerRadius?: number; readonly segmentGap?: number; }; } | { readonly kind: "line"; readonly props: { readonly dataKey: string; readonly stroke?: string; readonly strokeOpacity?: number; readonly strokeWidth?: number; readonly showMarkers?: boolean; readonly maxValue?: number; readonly dash?: boolean; readonly showNowMarker?: boolean; }; } | { readonly kind: "area"; readonly props: { readonly dataKey: string; readonly fill?: string; readonly stroke?: string; readonly fillOpacity?: number; readonly strokeWidth?: number; readonly curve?: "basis" | "linear" | "catmullRom"; readonly maxValue?: number; readonly ghostDataKey?: string; readonly lowerDataKey?: string; }; } | { readonly kind: "scrubber"; readonly props: { readonly color?: string; readonly variant?: "solid" | "gradient" | "dashed"; }; })[]
Required
props.legend{ readonly suffix?: string; readonly showValues?: boolean; }—
props.animatebooleantrue
props.center
Show type
{ readonly value?: number; readonly prefix?: string; readonly detail?: string; readonly unit?: "number" | "compact" | "percent" | "temperature"; readonly dataKey?: string; readonly labelDataKey?: string; readonly suffix?: string; readonly defaultLabel?: string; readonly comparisonDataKey?: string; readonly comparisonLabel?: string; readonly hoverLabelPrefix?: string; readonly hoverLabelSuffix?: string; readonly detailValueKey?: string; readonly detailTotalKey?: string; readonly detailSuffix?: string; }
—
props.maxWidthnumber640
props.layout
Show type
{ readonly center?: number; readonly axisLabel?: number; readonly tickInner?: number; readonly tickMinorOuter?: number; readonly tickMajorOuter?: number; readonly bandInner?: number; readonly bandOuter?: number; readonly scrubberOuter?: number; }
—
props.orientation"radial" | "angular"—
props.ringGapnumber0.3
props.xDataKeystring'time'
props.hoveredIndexnumber | null—
props.startAnglenumber0
props.endAnglenumber—
props.maxValuenumber | "stacked" | "auto"—
props.angleType"time" | "band" | "clock"'clock'
props.nowIndexnumberprops.data.findLastIndex((_, index) => !future[index])
props.minValuenumber | "auto"0
props.valueKeysreadonly string[][]
props.fitArcboolean—
props.trackNowboolean(props.angleType ?? 'clock') === 'clock'
props.niceValuesboolean—