@senvenli/react 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts/chart-parts.d.ts +21 -5
- package/dist/charts/chart-parts.js +31 -15
- package/dist/charts/chart-parts.js.map +1 -1
- package/dist/charts/core-charts.d.ts +2 -2
- package/dist/charts/core-charts.js +2 -2
- package/dist/charts/core-charts.js.map +1 -1
- package/dist/charts/list-charts.d.ts +4 -4
- package/dist/charts/list-charts.js +8 -8
- package/dist/charts/list-charts.js.map +1 -1
- package/dist/charts/more-charts.d.ts +9 -7
- package/dist/charts/more-charts.js +12 -12
- package/dist/charts/more-charts.js.map +1 -1
- package/dist/charts/report-charts.d.ts +2 -2
- package/dist/charts/report-charts.js +4 -4
- package/dist/charts/report-charts.js.map +1 -1
- package/dist/collection/table.js +4 -1
- package/dist/collection/table.js.map +1 -1
- package/dist/navigation/accordion.js +1 -1
- package/dist/navigation/accordion.js.map +1 -1
- package/dist/navigation/navbar.js +4 -2
- package/dist/navigation/navbar.js.map +1 -1
- package/dist/navigation/pagination.js +1 -1
- package/dist/navigation/pagination.js.map +1 -1
- package/dist/navigation/tabs.js +2 -2
- package/dist/navigation/tabs.js.map +1 -1
- package/manifests/area-chart.json +46 -1
- package/manifests/bar-chart.json +46 -0
- package/manifests/bar-list.json +6 -0
- package/manifests/calendar-heatmap.json +6 -0
- package/manifests/chart-parts.json +48 -1
- package/manifests/composed-chart.json +46 -1
- package/manifests/donut-chart.json +46 -1
- package/manifests/funnel-chart.json +6 -0
- package/manifests/gauge-chart.json +46 -1
- package/manifests/heatmap.json +6 -0
- package/manifests/line-chart.json +46 -1
- package/manifests/radar-chart.json +46 -1
- package/manifests/radial-chart.json +46 -1
- package/manifests/scatter-chart.json +46 -1
- package/manifests/sparkline.json +6 -1
- package/manifests/tracker.json +6 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"more-charts.js","sour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AAE,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,IAAlM,GAAG,CAAmM,CACnN,CAAC;oBACJ,CAAC,CAAC,EACJ,KAAC,OAAO,IAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAC,cAAc,IAAC,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAI,GAAI,IACvJ,GACD,GAChB,CACT,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { useLocale } from \"react-aria-components\";\nimport {\n Area,\n Bar,\n BarChart as RechartsBarChart,\n CartesianGrid,\n Cell,\n ComposedChart as RechartsComposedChart,\n Line,\n Pie,\n PieChart as RechartsPieChart,\n PolarAngleAxis,\n PolarGrid,\n PolarRadiusAxis,\n Radar,\n RadarChart as RechartsRadarChart,\n RadialBar,\n RadialBarChart,\n ResponsiveContainer,\n Scatter,\n Tooltip,\n XAxis,\n YAxis,\n ZAxis,\n} from \"recharts\";\n\nimport { cn } from \"../utils\";\nimport type { TableColumn } from \"../collection/table\";\nimport { chartNoDataLabel, chartOtherLabel, chartShareLabel, chartTrendLabel, chartValueLabel, gaugeTargetLabel, sparklineSummaryLabel } from \"../i18n\";\nimport {\n CHART_NEUTRAL,\n ChartFrame,\n ChartLegend,\n ChartTooltip,\n chartColor,\n useChartAnimation,\n useChartDirection,\n useChartSeries,\n type ChartValueFormatter,\n} from \"./chart-parts\";\nimport { ChartHeader, PlottedTooltip } from \"./core-charts\";\nimport { chartNumber, formattedValues, tickAxisWidth, tickOverhang, tickWrapWidth, valueAxisTicks } from \"./axis-width\";\nimport { NameTick, ValueTick, isolatedLabel } from \"./value-tick\";\nimport { EmptyState } from \"../feedback/empty-state\";\n\ntype Row = Record<string, unknown>;\nconst plain: ChartValueFormatter = (value) => String(value);\n/**\n * The size is in `style` as well, with its unit: Recharts measures a tick for wrapping in a hidden span that\n * takes only the tick's `style` (assigned as is, so a bare 11 is dropped). Without it the span kept the page's\n * body size (14–16px) and a tick that fits at 11px broke over two lines (\"€\" above \"1.500.000\").\n */\nconst AXIS_TICK = { fill: \"var(--ds-text-subtlest)\", fontSize: 11, style: { fontVariantNumeric: \"tabular-nums\", fontSize: \"11px\" } } as const;\n/** An axis name's 11px, in `style` too: Recharts measures labels for wrapping the same way. */\nconst LABEL_SIZE = { fontSize: 11, style: { fontSize: \"11px\" } } as const;\n/** Recharts places SVG text for LTR; the plot stays ltr inside (see ChartFrame). */\nconst LTR_PLOT = \"[direction:ltr]\";\n\ntype FrameProps = {\n /** What the chart shows, over it; leave it out when a card or a heading already says so. */\n title?: string;\n /** Names the chart when it has no visible `title` (a card's heading already says what it shows). */\n \"aria-label\"?: string;\n period?: string;\n isLoading?: boolean;\n /** Shown instead of the plot when there is no data: an `EmptyState size=\"small\"` or text; \"No data\" by default. */\n emptyState?: React.ReactNode;\n height?: number;\n};\n\n/** @internal The header, then ChartFrame with its loading, empty and data-table states. */\nexport function Shell<T extends object>({\n title,\n \"aria-label\": ariaLabel,\n period,\n total,\n isLoading,\n emptyState,\n isEmpty,\n height,\n legend,\n columns,\n rows,\n onRowAction,\n children,\n}: FrameProps & {\n total?: React.ReactNode;\n isEmpty: boolean;\n height: number;\n legend?: React.ReactNode;\n columns: TableColumn<T>[];\n rows: readonly T[];\n onRowAction?: (row: T) => void;\n children: React.ReactNode;\n}) {\n const { locale } = useLocale();\n const positions = React.useMemo(() => new Map(rows.map((row, position) => [row, position])), [rows]);\n return (\n <section data-slot=\"chart\" aria-label={title ?? ariaLabel} className=\"flex min-w-0 flex-col gap-ds-200\">\n {(title || period || total != null) && <ChartHeader title={title} period={period} total={total} />}\n <ChartFrame\n height={height}\n isLoading={isLoading}\n emptyState={isEmpty ? (emptyState ?? <EmptyState size=\"small\" icon=\"chart-column\" title={chartNoDataLabel(locale)} />) : null}\n legend={legend}\n dataTable={{ caption: [title ?? ariaLabel, period].filter(Boolean).join(\" · \"), columns, rows, rowKey: (row) => positions.get(row) ?? 0, onRowAction }}\n >\n {children}\n </ChartFrame>\n </section>\n );\n}\n\n/** Whole percentages that add up to exactly 100 (largest remainder). */\nexport function sharesOf(values: readonly number[]): number[] {\n const total = values.reduce((sum, value) => sum + Math.max(0, value), 0);\n if (total <= 0) return values.map(() => 0);\n const raw = values.map((value) => (Math.max(0, value) / total) * 100);\n const floors = raw.map(Math.floor);\n let left = 100 - floors.reduce((sum, value) => sum + value, 0);\n const order = raw.map((value, index) => ({ index, rest: value - Math.floor(value) })).sort((a, b) => b.rest - a.rest);\n for (const { index } of order) {\n if (left <= 0) break;\n floors[index]! += 1;\n left -= 1;\n }\n return floors;\n}\n\n/** @internal Warns once in development; shared by the chart files. */\nexport function useOnce(condition: boolean, message: string) {\n const warned = React.useRef(false);\n React.useEffect(() => {\n if (!condition || warned.current) return;\n warned.current = true;\n console.warn(message);\n }, [condition, message]);\n}\n\n/* ── DonutChart ───────────────────────────────────────────────────────────── */\n\nexport type DonutDatum = { name: string; value: number };\n\nexport type DonutChartProps = FrameProps & {\n /** Two to five parts; more are folded into \"Other\". */\n data: readonly DonutDatum[];\n valueFormatter?: ChartValueFormatter;\n /** Under the total in the center: its unit (\"orders\"). */\n centerLabel?: string;\n /** The value list beside the ring with exact percentages; on by default. */\n showList?: boolean;\n};\n\n/**\n * How a total divides into a few parts: an 18px ring with 1.2° gaps, parts in descending order from\n * 12 o'clock in `ds-chart-1`…, the total in the center with its unit, and a list beside the ring with\n * each part's value and exact share (the shares add up to 100). More than five parts fold into \"Other\".\n */\n/** The narrowest the donut's list gets before the ring shrinks: a swatch, a short name, value and share. */\nconst DONUT_LIST_MIN = 168;\n/** `gap-ds-300` between the ring and the list. */\nconst DONUT_GAP = 24;\n\nexport function DonutChart({ title, \"aria-label\": ariaLabel, period, data, valueFormatter = plain, centerLabel, showList = true, isLoading, emptyState, height = 200 }: DonutChartProps) {\n const { locale } = useLocale();\n const animate = useChartAnimation();\n // Parts of a whole: a missing or negative value has no slice.\n const counted = data.filter((part) => Number.isFinite(part.value) && part.value >= 0);\n useOnce(counted.length < data.length, \"DonutChart: parts without a finite, non-negative value are left out.\");\n useOnce(counted.length > 5, \"DonutChart: at most five parts; the rest are shown as \\\"Other\\\".\");\n const sorted = [...counted].sort((a, b) => b.value - a.value);\n const folded = sorted.length > 5;\n const parts: DonutDatum[] = folded ? [...sorted.slice(0, 4), { name: chartOtherLabel(locale), value: sorted.slice(4).reduce((sum, part) => sum + part.value, 0) }] : sorted;\n // \"Other\" is a neutral series, not a fifth hue.\n const partColor = (index: number) => (folded && index === 4 ? CHART_NEUTRAL : chartColor(index));\n const total = parts.reduce((sum, part) => sum + part.value, 0);\n const shares = sharesOf(parts.map((part) => part.value));\n const rows = parts.map((part, index) => ({ ...part, share: shares[index]! }));\n const columns: TableColumn<(typeof rows)[number]>[] = [\n { key: \"name\", header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: \"value\", header: chartValueLabel(locale), align: \"end\", render: (row) => valueFormatter(row.value) },\n { key: \"share\", header: chartShareLabel(locale), align: \"end\", render: (row) => `${row.share}%` },\n ];\n // On a phone the ring gives way, down to 112px, so the list keeps room for the names (whole pixels,\n // so the measuring settles).\n // A callback ref: the row mounts only once loading and empty are over, and the measuring starts then.\n const [row, setRow] = React.useState<HTMLDivElement | null>(null);\n const [rowWidth, setRowWidth] = React.useState<number>();\n React.useLayoutEffect(() => {\n if (!row || !showList || typeof ResizeObserver === \"undefined\") return;\n const observer = new ResizeObserver(([entry]) => setRowWidth(Math.floor(entry!.contentRect.width)));\n observer.observe(row);\n return () => observer.disconnect();\n }, [row, showList]);\n const ring = rowWidth === undefined ? height - 24 : Math.max(112, Math.min(height - 24, rowWidth - DONUT_LIST_MIN - DONUT_GAP));\n return (\n <Shell title={title} aria-label={ariaLabel} period={period} isLoading={isLoading} emptyState={emptyState} isEmpty={total <= 0} height={height} columns={columns} rows={rows}>\n <div ref={setRow} data-slot=\"donut\" className=\"flex h-full min-w-0 items-center gap-ds-300\">\n <div className={cn(\"relative shrink-0\", LTR_PLOT)} style={{ width: ring, height: ring }}>\n {/* Recharts' accessibility layer makes the ring a tab stop whose arrow keys move an active sector\n but show and announce nothing, so it is off: every part is in words in the list beside the\n ring and in the data table. */}\n <RechartsPieChart width={ring} height={ring} accessibilityLayer={false}>\n <Pie\n rootTabIndex={-1}\n data={parts}\n dataKey=\"value\"\n nameKey=\"name\"\n innerRadius={ring / 2 - 18}\n outerRadius={ring / 2}\n startAngle={90}\n endAngle={-270}\n paddingAngle={1.2}\n stroke=\"none\"\n isAnimationActive={animate}\n >\n {parts.map((part, index) => (\n <Cell key={index} fill={partColor(index)} />\n ))}\n </Pie>\n <Tooltip isAnimationActive={animate} content={<ChartTooltip valueFormatter={valueFormatter} labelFormatter={() => title} />} />\n </RechartsPieChart>\n {/* The total as text in the hole; the list beside the ring gives every part in words. */}\n <div data-slot=\"donut-center\" className=\"pointer-events-none absolute inset-0 grid place-content-center text-center\">\n <bdi className=\"text-[22px] leading-7 font-medium text-ds-text tabular-nums\">{valueFormatter(total)}</bdi>\n {/* Isolated in its own direction, as the total: the ring is drawn left to right in RTL too. */}\n {centerLabel && <bdi className=\"text-body-small text-ds-text-subtle\">{centerLabel}</bdi>}\n </div>\n </div>\n {showList && (\n <ul data-slot=\"donut-list\" className=\"m-0 flex min-w-0 flex-1 list-none flex-col gap-ds-100 p-0\">\n {rows.map((row, index) => (\n <li key={index} className=\"flex items-center gap-ds-100 text-body\">\n <span aria-hidden className=\"size-2.5 shrink-0 rounded-ds-xsmall\" style={{ background: partColor(index) }} />\n <bdi className=\"min-w-0 flex-1 truncate text-ds-text-subtle\">{row.name}</bdi>\n <bdi className=\"tabular-nums text-ds-text\">{valueFormatter(row.value)}</bdi>\n <bdi className=\"w-9 text-end tabular-nums text-ds-text-subtle\">{row.share}%</bdi>\n </li>\n ))}\n </ul>\n )}\n </div>\n </Shell>\n );\n}\n\n/* ── Gauge ────────────────────────────────────────────────────────────────── */\n\nexport type GaugeChartProps = Omit<FrameProps, \"emptyState\"> & {\n value: number;\n /** 0 by default. */\n min?: number;\n /** 100 by default: gauges are for bounded figures (occupancy, quota). */\n max?: number;\n /** A 2px tick on the arc, named under the value. */\n target?: number;\n valueFormatter?: ChartValueFormatter;\n};\n\nconst polar = (cx: number, cy: number, r: number, angle: number) => [cx + r * Math.cos(angle), cy - r * Math.sin(angle)] as const;\n\n/**\n * One bounded value against its range and a target: a half-circle 16px track in\n * `ds-background-neutral-pressed`, the value in `ds-chart-1` with round caps, the target as a 2px\n * `ds-text` tick, the value in the center with the target under it. Only for bounded percentages\n * (occupancy, quota), never money or open counts. A meter to screen readers.\n */\nexport function GaugeChart({ title, \"aria-label\": ariaLabel, period, value, min = 0, max = 100, target, valueFormatter = plain, isLoading, height = 160 }: GaugeChartProps) {\n const { locale } = useLocale();\n const { isRtl } = useChartDirection();\n // A missing value reads as the minimum, and an empty range draws no fill or tick.\n const clamp = (n: number) => (Number.isFinite(n) ? Math.min(max, Math.max(min, n)) : min);\n const ratioOf = (n: number) => (max > min ? (clamp(n) - min) / (max - min) : 0);\n const ratio = ratioOf(value);\n const width = height * 2 - 32;\n const cx = width / 2;\n const cy = height - 16;\n const r = Math.min(cx, cy) - 12;\n const arc = (to: number) => {\n const [x0, y0] = polar(cx, cy, r, Math.PI);\n const [x1, y1] = polar(cx, cy, r, Math.PI - to * Math.PI);\n return `M ${x0} ${y0} A ${r} ${r} 0 0 1 ${x1} ${y1}`;\n };\n const targetRatio = target === undefined || !Number.isFinite(target) || max <= min ? undefined : ratioOf(target);\n const tick = targetRatio === undefined ? undefined : [polar(cx, cy, r - 12, Math.PI - targetRatio * Math.PI), polar(cx, cy, r + 12, Math.PI - targetRatio * Math.PI)];\n // A missing value is said as missing, not formatted as NaN: a dash in the center, the sentence for screen readers.\n const hasValue = Number.isFinite(value);\n const valueText = hasValue ? valueFormatter(value) : chartNoDataLabel(locale);\n const targetText = target === undefined ? undefined : gaugeTargetLabel(locale, valueFormatter(target));\n const rows = [{ name: title, value, target }];\n const columns: TableColumn<(typeof rows)[number]>[] = [\n { key: \"name\", header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: \"value\", header: chartValueLabel(locale), align: \"end\", render: (row) => valueFormatter(row.value) },\n ...(target === undefined ? [] : [{ key: \"target\", header: gaugeTargetLabel(locale, \"\").trim(), align: \"end\" as const, render: () => valueFormatter(target) }]),\n ];\n return (\n <Shell title={title} aria-label={ariaLabel} period={period} isLoading={isLoading} isEmpty={false} height={height} columns={columns} rows={rows}>\n <div\n role=\"meter\"\n aria-label={title ?? ariaLabel}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={clamp(value)}\n aria-valuetext={targetText ? `${valueText}, ${targetText}` : valueText}\n data-slot=\"gauge\"\n className=\"relative mx-auto h-full\"\n style={{ width }}\n >\n {/* The fill runs from the inline start, like a progress bar: the drawing is mirrored in RTL. */}\n <svg aria-hidden width={width} height={height} className={cn(\"block overflow-visible\", isRtl && \"-scale-x-100\")}>\n <path d={arc(1)} fill=\"none\" stroke=\"var(--ds-background-neutral-pressed)\" strokeWidth={16} strokeLinecap=\"round\" />\n {ratio > 0 && <path data-slot=\"gauge-value\" d={arc(ratio)} fill=\"none\" stroke=\"var(--ds-chart-1)\" strokeWidth={16} strokeLinecap=\"round\" />}\n {tick && <line data-slot=\"gauge-target\" x1={tick[0][0]} y1={tick[0][1]} x2={tick[1][0]} y2={tick[1][1]} stroke=\"var(--ds-text)\" strokeWidth={2} />}\n </svg>\n <div className=\"pointer-events-none absolute inset-x-0 bottom-ds-100 flex flex-col items-center\">\n <bdi data-slot=\"gauge-text\" className=\"text-[22px] leading-7 font-medium text-ds-text tabular-nums\">{hasValue ? valueText : \"—\"}</bdi>\n {targetText && <bdi className=\"text-body-small text-ds-text-subtle\">{targetText}</bdi>}\n </div>\n </div>\n </Shell>\n );\n}\n\n/* ── RadialChart ──────────────────────────────────────────────────────────── */\n\nexport type RadialChartProps = FrameProps & {\n /** Two or three values on one 0–100 scale. */\n data: readonly DonutDatum[];\n valueFormatter?: ChartValueFormatter;\n};\n\n/** Two or three values that share a 0–100 scale: 12px rings in `ds-chart-1`…`3` from 12 o'clock, with a key list. */\nexport function RadialChart({ title, \"aria-label\": ariaLabel, period, data, valueFormatter = (value) => `${value}%`, isLoading, emptyState, height = 200 }: RadialChartProps) {\n const { locale } = useLocale();\n const animate = useChartAnimation();\n useOnce(data.length > 3, \"RadialChart: two or three rings; use a BarChart for more.\");\n const rings = data.slice(0, 3).map((ring, index) => ({ ...ring, fill: chartColor(index) }));\n const size = height - 8;\n const columns: TableColumn<DonutDatum>[] = [\n { key: \"name\", header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: \"value\", header: chartValueLabel(locale), align: \"end\", render: (row) => valueFormatter(row.value) },\n ];\n return (\n <Shell title={title} aria-label={ariaLabel} period={period} isLoading={isLoading} emptyState={emptyState} isEmpty={rings.length === 0} height={height} columns={columns} rows={rings}>\n <div data-slot=\"radial\" className=\"flex h-full min-w-0 items-center gap-ds-400\">\n <div className={cn(\"shrink-0\", LTR_PLOT)}>\n <RadialBarChart width={size} height={size} data={rings} innerRadius={size / 2 - 12 * rings.length - 6 * (rings.length - 1)} outerRadius={size / 2} barSize={12} startAngle={90} endAngle={-270} accessibilityLayer={false}>\n {/* No keyboard layer: with no tooltip its arrow keys would show nothing; the list gives every value. */}\n <PolarAngleAxis type=\"number\" domain={[0, 100]} tick={false} />\n <RadialBar dataKey=\"value\" cornerRadius={6} background={{ fill: \"var(--ds-background-neutral-pressed)\" }} isAnimationActive={animate} />\n </RadialBarChart>\n </div>\n <ul data-slot=\"radial-list\" className=\"m-0 flex min-w-0 flex-1 list-none flex-col gap-ds-100 p-0\">\n {rings.map((ring, index) => (\n <li key={index} className=\"flex items-center gap-ds-100 text-body\">\n <span aria-hidden className=\"size-2.5 shrink-0 rounded-ds-xsmall\" style={{ background: ring.fill }} />\n <bdi className=\"min-w-0 flex-1 truncate text-ds-text-subtle\">{ring.name}</bdi>\n <bdi className=\"tabular-nums text-ds-text\">{valueFormatter(ring.value)}</bdi>\n </li>\n ))}\n </ul>\n </div>\n </Shell>\n );\n}\n\n/* ── Sparkline ────────────────────────────────────────────────────────────── */\n\nexport type SparklineProps = {\n data: readonly number[];\n type?: \"line\" | \"bar\";\n /** 120 in tables; leave out to fill the width (Stat). */\n width?: number;\n /** 32 in tables, 28 in a Stat. */\n height?: number;\n /** Names the trend when the text next to it does not; a summary of the values otherwise. */\n \"aria-label\"?: string;\n valueFormatter?: ChartValueFormatter;\n};\n\n/**\n * A word-sized trend with no axes, beside the number it explains (in tables, Stats, cards): a 1.5px\n * `ds-chart-1` line over a 14% fill with the last point marked, or bars. No gridlines, labels or tooltip;\n * screen readers get a text summary (first, last, low, high) instead of a table.\n */\nexport function Sparkline({ data, type = \"line\", width, height = 32, \"aria-label\": label, valueFormatter = plain }: SparklineProps) {\n const { locale } = useLocale();\n const animate = useChartAnimation();\n const direction = useChartDirection();\n const points = data.map((value, index) => ({ index, value }));\n const summary =\n data.length > 0\n ? sparklineSummaryLabel(locale, {\n first: valueFormatter(data[0]!),\n last: valueFormatter(data[data.length - 1]!),\n min: valueFormatter(Math.min(...data)),\n max: valueFormatter(Math.max(...data)),\n })\n : chartNoDataLabel(locale);\n const plot =\n type === \"bar\" ? (\n <RechartsBarChart data={points} margin={{ top: 2, right: 0, bottom: 0, left: 0 }} barCategoryGap=\"20%\" accessibilityLayer={false}>\n <XAxis dataKey=\"index\" hide reversed={direction.reversed} />\n <YAxis hide domain={[(low: number) => Math.min(0, low), (high: number) => Math.max(0, high)]} />\n <Bar dataKey=\"value\" fill=\"var(--ds-chart-1)\" radius={1} isAnimationActive={animate} />\n </RechartsBarChart>\n ) : (\n <RechartsComposedChart data={points} margin={{ top: 3, right: 3, bottom: 3, left: 3 }} accessibilityLayer={false}>\n <XAxis dataKey=\"index\" hide reversed={direction.reversed} />\n <YAxis hide domain={[\"dataMin\", \"dataMax\"]} />\n <Area dataKey=\"value\" type=\"monotone\" stroke=\"var(--ds-chart-1)\" strokeWidth={1.5} fill=\"var(--ds-chart-1)\" fillOpacity={0.14} isAnimationActive={animate}\n // The last point marked.\n dot={(props: { cx?: number; cy?: number; index?: number }) =>\n props.index === data.length - 1 && props.cx != null && props.cy != null ? (\n <circle key=\"last\" data-slot=\"sparkline-last\" cx={props.cx} cy={props.cy} r={2.5} fill=\"var(--ds-chart-1)\" />\n ) : (\n <g key={props.index} />\n )\n }\n />\n </RechartsComposedChart>\n );\n return (\n <span role=\"img\" aria-label={label ?? summary} title={summary} data-slot=\"sparkline\" className={cn(\"inline-block align-middle\", width == null && \"w-full\", LTR_PLOT)} style={{ width, height }}>\n {width != null ? (\n React.cloneElement(plot, { width, height })\n ) : (\n <ResponsiveContainer width=\"100%\" height={height}>\n {plot}\n </ResponsiveContainer>\n )}\n </span>\n );\n}\n\n/* ── ScatterChart ─────────────────────────────────────────────────────────── */\n\nexport type ScatterChartProps<T extends Row> = FrameProps & {\n data: readonly T[];\n /** The key naming each point (a product's SKU); shown on hover and as the table's row header. */\n name: keyof T & string;\n x: keyof T & string;\n y: keyof T & string;\n /** A third measure as point size. */\n size?: keyof T & string;\n /** A second category: `ds-chart-2` and a diamond, so it differs by shape as well as hue. */\n category?: { key: keyof T & string; value: unknown; label: string; otherLabel: string };\n /** Axis names with their units (\"Daily price (€)\"). */\n xLabel: string;\n yLabel: string;\n valueFormatters?: { x?: ChartValueFormatter; y?: ChartValueFormatter };\n /** A least-squares trend line, dashed in `ds-chart-neutral`. */\n trendLine?: boolean;\n /** Opens the item: the row under the pointer. */\n onPointPress?: (row: T) => void;\n};\n\n/** Recharts' default tick count, set on the y axis so the width counts the ticks it draws. */\nconst SCATTER_TICKS = 5;\n/** The y axis's narrowest, as it was before it was sized from its ticks. */\nconst SCATTER_Y_MIN = 56;\n/** The y axis's name, turned on its side at the axis's outer edge: about 12px across (11px type), and 4px clear of the ticks. */\nconst AXIS_NAME_ROOM = 16;\n\n/** The least-squares line through the points, as its two ends; null under two points. */\nfunction fitTrend<T>(rows: readonly T[], px: (row: T) => number, py: (row: T) => number, x: string) {\n if (rows.length < 2) return null;\n const n = rows.length;\n const sx = rows.reduce((sum, row) => sum + px(row), 0);\n const sy = rows.reduce((sum, row) => sum + py(row), 0);\n const sxy = rows.reduce((sum, row) => sum + px(row) * py(row), 0);\n const sxx = rows.reduce((sum, row) => sum + px(row) ** 2, 0);\n const slope = (n * sxy - sx * sy) / (n * sxx - sx * sx || 1);\n const intercept = (sy - slope * sx) / n;\n const xs = rows.map(px);\n const [lo, hi] = [Math.min(...xs), Math.max(...xs)];\n return [\n { [x]: lo, trend: slope * lo + intercept },\n { [x]: hi, trend: slope * hi + intercept },\n ];\n}\n\n/**\n * Each item by two measures, to show a relation and outliers: 4px `ds-chart-1` points at 80%, an optional\n * dashed trend line in `ds-chart-neutral`, an optional size measure or second category (`ds-chart-2`\n * diamonds). Hover names the item; a press opens it, and so does a row of the shown data table, which is\n * the keyboard's way in. Axes carry their units.\n */\nexport function ScatterChart<T extends Row>(props: ScatterChartProps<T>) {\n const { title, \"aria-label\": ariaLabel, period, data, name, x, y, size, category, xLabel, yLabel, valueFormatters, trendLine, onPointPress, isLoading, emptyState, height = 260 } = props;\n const { locale } = useLocale();\n const animate = useChartAnimation();\n const direction = useChartDirection();\n const series = useChartSeries();\n const fx = valueFormatters?.x ?? plain;\n const fy = valueFormatters?.y ?? plain;\n const numeric = (row: T, key: string) => (typeof row[key] === \"number\" ? (row[key] as number) : NaN);\n // An item without both measures has no place on the plot, nor in its table.\n const valid = data.filter((row) => Number.isFinite(numeric(row, x)) && Number.isFinite(numeric(row, y)));\n const groups = category\n ? [\n { key: \"main\", label: category.otherLabel, rows: valid.filter((row) => row[category.key] !== category.value), color: chartColor(0), shape: \"circle\" as const },\n { key: \"category\", label: category.label, rows: valid.filter((row) => row[category.key] === category.value), color: chartColor(1), shape: \"diamond\" as const },\n ]\n : [{ key: \"main\", label: yLabel, rows: valid, color: chartColor(0), shape: \"circle\" as const }];\n // The trend follows what is shown: a group hidden from the legend leaves the fit too.\n const shown = groups.filter((group) => !series.isHidden(group.key)).flatMap((group) => group.rows);\n const trend = fitTrend(trendLine ? shown : [], (row) => numeric(row, x), (row) => numeric(row, y), x);\n // The trend is a series too: it gets a dashed key in the legend, and the legend can hide it.\n const legendItems = [\n ...(category ? groups.map((group) => ({ key: group.key, label: group.label, color: group.color })) : []),\n ...(trend ? [{ key: \"trend\", label: chartTrendLabel(locale), color: CHART_NEUTRAL, kind: \"line\" as const, strokeDasharray: \"6 4\" }] : []),\n ];\n // The y axis holds its name beside its ticks: as wide as its longest tick (Recharts' ticks for the y values\n // drawn, the trend's ends among them) plus the name's room, never under the 56px it always had. The x axis\n // needs no width: Recharts lets its ticks run the plot's width. Each y tick is given the room beside the name\n // (see axis-width's tickWrapWidth). Both axes draw the DS's ticks (ValueTick): a figure never parts from its\n // sign and currency, and an axis whose ticks pass their room shows them with compact figures, the y axis then\n // sized for those.\n const yTicks = valueAxisTicks([...shown.map((row) => numeric(row, y)), ...(trend && !series.isHidden(\"trend\") ? trend.map((end) => end.trend) : [])], SCATTER_TICKS);\n const yValues = formattedValues(yTicks, fy);\n const yAxisWidth = tickAxisWidth(yTicks.map(fy), SCATTER_Y_MIN, AXIS_NAME_ROOM, locale, yValues);\n // The top y tick's lines past one stand above its gridline: the 8px top margin takes them (axis-width's tickOverhang).\n const yOverhang = tickOverhang(yTicks.length > 0 ? fy(yTicks.at(-1)!) : undefined, tickWrapWidth(yAxisWidth, AXIS_NAME_ROOM), locale, yTicks.map(fy), yValues);\n const xTicks = valueAxisTicks(shown.map((row) => numeric(row, x)), SCATTER_TICKS);\n const columns: TableColumn<T>[] = [\n { key: name, header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: x, header: xLabel, align: \"end\", render: (row) => fx(numeric(row, x)) },\n { key: y, header: yLabel, align: \"end\", render: (row) => fy(numeric(row, y)) },\n ...(category ? [{ key: category.key, header: category.label, render: (row: T) => (row[category.key] === category.value ? category.label : category.otherLabel) }] : []),\n ];\n return (\n <Shell\n title={title}\n aria-label={ariaLabel}\n period={period}\n isLoading={isLoading}\n emptyState={emptyState}\n isEmpty={valid.length === 0}\n height={height}\n legend={legendItems.length > 0 ? <ChartLegend items={legendItems} hidden={series.hidden} onToggle={series.toggle} /> : undefined}\n columns={columns}\n rows={valid}\n onRowAction={onPointPress}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <RechartsComposedChart margin={{ top: 8 + yOverhang, right: 8, bottom: 16, left: 8 }} accessibilityLayer>\n <CartesianGrid stroke=\"var(--ds-border)\" />\n <XAxis type=\"number\" dataKey={x as string} name={xLabel} tickFormatter={fx} tick={<ValueTick {...AXIS_TICK} axisTicks={xTicks} />} tickLine={false} axisLine={{ stroke: \"var(--ds-border-bold)\" }} reversed={direction.reversed}\n label={{ value: xLabel, position: \"insideBottom\", offset: -12, fill: \"var(--ds-text-subtle)\", ...LABEL_SIZE, ...isolatedLabel(xLabel, \"insideBottom\") }} />\n <YAxis type=\"number\" dataKey={y as string} name={yLabel} tickFormatter={fy} tick={<ValueTick {...AXIS_TICK} width={tickWrapWidth(yAxisWidth, AXIS_NAME_ROOM)} axisTicks={yTicks} />} tickLine={false} axisLine={false} orientation={direction.valueAxis} width={yAxisWidth} tickCount={SCATTER_TICKS}\n label={{ value: yLabel, angle: -90, position: direction.isRtl ? \"insideRight\" : \"insideLeft\", fill: \"var(--ds-text-subtle)\", ...LABEL_SIZE, ...isolatedLabel(yLabel, direction.isRtl ? \"insideRight\" : \"insideLeft\") }} />\n {size && <ZAxis type=\"number\" dataKey={size as string} range={[16, 160]} />}\n {groups\n .filter((group) => !series.isHidden(group.key))\n .map((group) => (\n <Scatter\n key={group.key}\n name={group.label}\n data={group.rows}\n fill={group.color}\n fillOpacity={0.8}\n shape={group.shape}\n isAnimationActive={animate}\n onClick={(point: { payload?: T }) => point.payload && onPointPress?.(point.payload)}\n className={onPointPress ? \"cursor-pointer\" : undefined}\n />\n ))}\n {trend && !series.isHidden(\"trend\") && <Line data={trend} dataKey=\"trend\" type=\"linear\" stroke={CHART_NEUTRAL} strokeDasharray=\"6 4\" strokeWidth={1.5} dot={false} activeDot={false} legendType=\"none\" isAnimationActive={animate} />}\n <Tooltip\n isAnimationActive={animate}\n cursor={{ strokeDasharray: \"3 3\", stroke: \"var(--ds-border-bold)\" }}\n content={({ active, payload }) => {\n const row = (payload?.[0]?.payload ?? null) as T | null;\n if (!active || !row || row[name] === undefined) return null;\n return (\n <ChartTooltip\n active\n label={String(row[name])}\n payload={[\n { dataKey: \"x\", name: xLabel, value: fx(numeric(row, x)), color: \"transparent\" },\n { dataKey: \"y\", name: yLabel, value: fy(numeric(row, y)), color: \"transparent\" },\n ]}\n />\n );\n }}\n />\n </RechartsComposedChart>\n </ResponsiveContainer>\n </Shell>\n );\n}\n\n/* ── RadarChart ───────────────────────────────────────────────────────────── */\n\nexport type RadarChartProps<T extends Row> = FrameProps & {\n /** One row per dimension (five to eight). */\n data: readonly T[];\n /** The dimension's name key. */\n dimension: keyof T & string;\n /** One or two profiles: the first is the main one, a second is the comparison. */\n categories: readonly (keyof T & string)[];\n labels?: Readonly<Partial<Record<string, string>>>;\n /** The shared scale's top. */\n max: number;\n valueFormatter?: ChartValueFormatter;\n};\n\n/**\n * One or two profiles across five to eight dimensions on one scale: five concentric polygon gridlines in\n * `ds-border`, labels outside in `ds-text-subtle`, the main profile `ds-chart-1` (2px edge, 18% fill), the\n * comparison `ds-chart-neutral` (12% fill, dashed edge).\n */\nexport function RadarChart<T extends Row>({ title, \"aria-label\": ariaLabel, period, data, dimension, categories, labels, max, valueFormatter = plain, isLoading, emptyState, height = 280 }: RadarChartProps<T>) {\n const animate = useChartAnimation();\n const series = useChartSeries();\n useOnce(categories.length > 2, \"RadarChart: one or two profiles.\");\n useOnce(data.length > 0 && (data.length < 5 || data.length > 8), \"RadarChart: five to eight dimensions; a horizontal BarChart reads faster otherwise.\");\n const profiles = categories.slice(0, 2);\n const label = (key: string) => labels?.[key] ?? key;\n const styles = (key: string, index: number) =>\n index === 0 ? { color: chartColor(0), fillOpacity: 0.18, strokeDasharray: undefined } : { color: CHART_NEUTRAL, fillOpacity: 0.12, strokeDasharray: \"6 4\" };\n const columns: TableColumn<T>[] = [\n { key: dimension, header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n // A value as the radar plots it (a numeric string too); \"—\" for a gap.\n ...profiles.map((key) => ({ key, header: label(key), align: \"end\" as const, render: (row: T) => { const value = chartNumber(row[key]); return value === undefined ? \"—\" : valueFormatter(value); } })),\n ];\n return (\n <Shell\n title={title}\n aria-label={ariaLabel}\n period={period}\n isLoading={isLoading}\n emptyState={emptyState}\n isEmpty={data.length === 0}\n height={height}\n legend={\n profiles.length > 1 ? (\n <ChartLegend\n items={profiles.map((key, index) => ({ key, label: label(key), kind: \"line\" as const, color: styles(key, index).color, strokeDasharray: styles(key, index).strokeDasharray }))}\n hidden={series.hidden}\n onToggle={series.toggle}\n />\n ) : undefined\n }\n columns={columns}\n rows={data}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <RechartsRadarChart data={data as Row[]} outerRadius=\"72%\" accessibilityLayer>\n <PolarGrid gridType=\"polygon\" stroke=\"var(--ds-border)\" />\n {/* Recharts' own tick, each dimension's name in its own reading direction (value-tick's NameTick). */}\n <PolarAngleAxis dataKey={dimension as string} tick={<NameTick polar fill=\"var(--ds-text-subtle)\" fontSize={11} />} />\n <PolarRadiusAxis domain={[0, max]} tickCount={6} tick={false} axisLine={false} />\n {profiles\n .filter((key) => !series.isHidden(key))\n .map((key) => {\n const style = styles(key, profiles.indexOf(key));\n return (\n <Radar key={key} name={key} dataKey={key as string} stroke={style.color} strokeWidth={2} strokeDasharray={style.strokeDasharray} fill={style.color} fillOpacity={style.fillOpacity} isAnimationActive={animate} />\n );\n })}\n <Tooltip isAnimationActive={animate} content={<PlottedTooltip valueFormatter={valueFormatter} labels={Object.fromEntries(profiles.map((key) => [key, label(key)]))} />} />\n </RechartsRadarChart>\n </ResponsiveContainer>\n </Shell>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"more-charts.js","sourceRoot":"","sources":["../../src/charts/more-charts.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EACL,IAAI,EACJ,GAAG,EACH,QAAQ,IAAI,gBAAgB,EAC5B,aAAa,EACb,IAAI,EACJ,aAAa,IAAI,qBAAqB,EACtC,IAAI,EACJ,GAAG,EACH,QAAQ,IAAI,gBAAgB,EAC5B,cAAc,EACd,SAAS,EACT,eAAe,EACf,KAAK,EACL,UAAU,IAAI,kBAAkB,EAChC,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,EACL,KAAK,GACN,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACxJ,OAAO,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACkC,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,aAA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M,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAI,EAChF,QAAQ;yBACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;yBACtC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;wBACX,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;wBACjD,OAAO,CACL,KAAC,KAAK,IAAW,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAa,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,IAAlM,GAAG,CAAmM,CACnN,CAAC;oBACJ,CAAC,CAAC,EACJ,KAAC,OAAO,IAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAC,cAAc,IAAC,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAI,GAAI,IACvJ,GACD,GAChB,CACT,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { useLocale } from \"react-aria-components\";\nimport {\n Area,\n Bar,\n BarChart as RechartsBarChart,\n CartesianGrid,\n Cell,\n ComposedChart as RechartsComposedChart,\n Line,\n Pie,\n PieChart as RechartsPieChart,\n PolarAngleAxis,\n PolarGrid,\n PolarRadiusAxis,\n Radar,\n RadarChart as RechartsRadarChart,\n RadialBar,\n RadialBarChart,\n ResponsiveContainer,\n Scatter,\n Tooltip,\n XAxis,\n YAxis,\n ZAxis,\n} from \"recharts\";\n\nimport { cn } from \"../utils\";\nimport type { TableColumn } from \"../collection/table\";\nimport { chartNoDataLabel, chartOtherLabel, chartShareLabel, chartTrendLabel, chartValueLabel, gaugeTargetLabel, sparklineSummaryLabel } from \"../i18n\";\nimport {\n CHART_NEUTRAL,\n ChartFrame,\n ChartLegend,\n ChartTooltip,\n chartColor,\n useChartAnimation,\n useChartDirection,\n useChartSeries,\n type ChartValueFormatter, type ChartTableProps } from \"./chart-parts\";\nimport { ChartHeader, PlottedTooltip } from \"./core-charts\";\nimport { chartNumber, formattedValues, tickAxisWidth, tickOverhang, tickWrapWidth, valueAxisTicks } from \"./axis-width\";\nimport { NameTick, ValueTick, isolatedLabel } from \"./value-tick\";\nimport { EmptyState } from \"../feedback/empty-state\";\n\ntype Row = Record<string, unknown>;\nconst plain: ChartValueFormatter = (value) => String(value);\n/**\n * The size is in `style` as well, with its unit: Recharts measures a tick for wrapping in a hidden span that\n * takes only the tick's `style` (assigned as is, so a bare 11 is dropped). Without it the span kept the page's\n * body size (14–16px) and a tick that fits at 11px broke over two lines (\"€\" above \"1.500.000\").\n */\nconst AXIS_TICK = { fill: \"var(--ds-text-subtlest)\", fontSize: 11, style: { fontVariantNumeric: \"tabular-nums\", fontSize: \"11px\" } } as const;\n/** An axis name's 11px, in `style` too: Recharts measures labels for wrapping the same way. */\nconst LABEL_SIZE = { fontSize: 11, style: { fontSize: \"11px\" } } as const;\n/** Recharts places SVG text for LTR; the plot stays ltr inside (see ChartFrame). */\nconst LTR_PLOT = \"[direction:ltr]\";\n\ntype FrameProps = ChartTableProps & {\n /** What the chart shows, over it; leave it out when a card or a heading already says so. */\n title?: string;\n /** Names the chart when it has no visible `title` (a card's heading already says what it shows). */\n \"aria-label\"?: string;\n period?: string;\n isLoading?: boolean;\n /** Shown instead of the plot when there is no data: an `EmptyState size=\"small\"` or text; \"No data\" by default. */\n emptyState?: React.ReactNode;\n height?: number;\n};\n\n/** @internal The header, then ChartFrame with its loading, empty and data-table states. */\nexport function Shell<T extends object>({\n title,\n \"aria-label\": ariaLabel,\n period,\n total,\n isLoading,\n emptyState,\n isEmpty,\n height,\n legend,\n columns,\n rows,\n onRowAction,\n table,\n children,\n}: FrameProps & {\n /** The chart's data-table options (`tableView`, `isTableOpen`…), passed through to ChartFrame. */\n table?: ChartTableProps;\n total?: React.ReactNode;\n isEmpty: boolean;\n height: number;\n legend?: React.ReactNode;\n columns: TableColumn<T>[];\n rows: readonly T[];\n onRowAction?: (row: T) => void;\n children: React.ReactNode;\n}) {\n const { locale } = useLocale();\n const positions = React.useMemo(() => new Map(rows.map((row, position) => [row, position])), [rows]);\n return (\n <section data-slot=\"chart\" aria-label={title ?? ariaLabel} className=\"flex min-w-0 flex-col gap-ds-200\">\n {(title || period || total != null) && <ChartHeader title={title} period={period} total={total} />}\n <ChartFrame\n height={height}\n isLoading={isLoading}\n emptyState={isEmpty ? (emptyState ?? <EmptyState size=\"small\" icon=\"chart-column\" title={chartNoDataLabel(locale)} />) : null}\n legend={legend}\n dataTable={{ caption: [title ?? ariaLabel, period].filter(Boolean).join(\" · \"), columns, rows, rowKey: (row) => positions.get(row) ?? 0, onRowAction }}\n {...table}\n >\n {children}\n </ChartFrame>\n </section>\n );\n}\n\n/** Whole percentages that add up to exactly 100 (largest remainder). */\nexport function sharesOf(values: readonly number[]): number[] {\n const total = values.reduce((sum, value) => sum + Math.max(0, value), 0);\n if (total <= 0) return values.map(() => 0);\n const raw = values.map((value) => (Math.max(0, value) / total) * 100);\n const floors = raw.map(Math.floor);\n let left = 100 - floors.reduce((sum, value) => sum + value, 0);\n const order = raw.map((value, index) => ({ index, rest: value - Math.floor(value) })).sort((a, b) => b.rest - a.rest);\n for (const { index } of order) {\n if (left <= 0) break;\n floors[index]! += 1;\n left -= 1;\n }\n return floors;\n}\n\n/** @internal Warns once in development; shared by the chart files. */\nexport function useOnce(condition: boolean, message: string) {\n const warned = React.useRef(false);\n React.useEffect(() => {\n if (!condition || warned.current) return;\n warned.current = true;\n console.warn(message);\n }, [condition, message]);\n}\n\n/* ── DonutChart ───────────────────────────────────────────────────────────── */\n\nexport type DonutDatum = { name: string; value: number };\n\nexport type DonutChartProps = FrameProps & {\n /** Two to five parts; more are folded into \"Other\". */\n data: readonly DonutDatum[];\n valueFormatter?: ChartValueFormatter;\n /** Under the total in the center: its unit (\"orders\"). */\n centerLabel?: string;\n /** The value list beside the ring with exact percentages; on by default. */\n showList?: boolean;\n};\n\n/**\n * How a total divides into a few parts: an 18px ring with 1.2° gaps, parts in descending order from\n * 12 o'clock in `ds-chart-1`…, the total in the center with its unit, and a list beside the ring with\n * each part's value and exact share (the shares add up to 100). More than five parts fold into \"Other\".\n */\n/** The narrowest the donut's list gets before the ring shrinks: a swatch, a short name, value and share. */\nconst DONUT_LIST_MIN = 168;\n/** `gap-ds-300` between the ring and the list. */\nconst DONUT_GAP = 24;\n\nexport function DonutChart({ title, \"aria-label\": ariaLabel, period, data, valueFormatter = plain, centerLabel, showList = true, isLoading, emptyState, height = 200, ...table }: DonutChartProps) {\n const { locale } = useLocale();\n const animate = useChartAnimation();\n // Parts of a whole: a missing or negative value has no slice.\n const counted = data.filter((part) => Number.isFinite(part.value) && part.value >= 0);\n useOnce(counted.length < data.length, \"DonutChart: parts without a finite, non-negative value are left out.\");\n useOnce(counted.length > 5, \"DonutChart: at most five parts; the rest are shown as \\\"Other\\\".\");\n const sorted = [...counted].sort((a, b) => b.value - a.value);\n const folded = sorted.length > 5;\n const parts: DonutDatum[] = folded ? [...sorted.slice(0, 4), { name: chartOtherLabel(locale), value: sorted.slice(4).reduce((sum, part) => sum + part.value, 0) }] : sorted;\n // \"Other\" is a neutral series, not a fifth hue.\n const partColor = (index: number) => (folded && index === 4 ? CHART_NEUTRAL : chartColor(index));\n const total = parts.reduce((sum, part) => sum + part.value, 0);\n const shares = sharesOf(parts.map((part) => part.value));\n const rows = parts.map((part, index) => ({ ...part, share: shares[index]! }));\n const columns: TableColumn<(typeof rows)[number]>[] = [\n { key: \"name\", header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: \"value\", header: chartValueLabel(locale), align: \"end\", render: (row) => valueFormatter(row.value) },\n { key: \"share\", header: chartShareLabel(locale), align: \"end\", render: (row) => `${row.share}%` },\n ];\n // On a phone the ring gives way, down to 112px, so the list keeps room for the names (whole pixels,\n // so the measuring settles).\n // A callback ref: the row mounts only once loading and empty are over, and the measuring starts then.\n const [row, setRow] = React.useState<HTMLDivElement | null>(null);\n const [rowWidth, setRowWidth] = React.useState<number>();\n React.useLayoutEffect(() => {\n if (!row || !showList || typeof ResizeObserver === \"undefined\") return;\n const observer = new ResizeObserver(([entry]) => setRowWidth(Math.floor(entry!.contentRect.width)));\n observer.observe(row);\n return () => observer.disconnect();\n }, [row, showList]);\n const ring = rowWidth === undefined ? height - 24 : Math.max(112, Math.min(height - 24, rowWidth - DONUT_LIST_MIN - DONUT_GAP));\n return (\n <Shell table={table} title={title} aria-label={ariaLabel} period={period} isLoading={isLoading} emptyState={emptyState} isEmpty={total <= 0} height={height} columns={columns} rows={rows}>\n <div ref={setRow} data-slot=\"donut\" className=\"flex h-full min-w-0 items-center gap-ds-300\">\n <div className={cn(\"relative shrink-0\", LTR_PLOT)} style={{ width: ring, height: ring }}>\n {/* Recharts' accessibility layer makes the ring a tab stop whose arrow keys move an active sector\n but show and announce nothing, so it is off: every part is in words in the list beside the\n ring and in the data table. */}\n <RechartsPieChart width={ring} height={ring} accessibilityLayer={false}>\n <Pie\n rootTabIndex={-1}\n data={parts}\n dataKey=\"value\"\n nameKey=\"name\"\n innerRadius={ring / 2 - 18}\n outerRadius={ring / 2}\n startAngle={90}\n endAngle={-270}\n paddingAngle={1.2}\n stroke=\"none\"\n isAnimationActive={animate}\n >\n {parts.map((part, index) => (\n <Cell key={index} fill={partColor(index)} />\n ))}\n </Pie>\n <Tooltip isAnimationActive={animate} content={<ChartTooltip valueFormatter={valueFormatter} labelFormatter={() => title} />} />\n </RechartsPieChart>\n {/* The total as text in the hole; the list beside the ring gives every part in words. */}\n <div data-slot=\"donut-center\" className=\"pointer-events-none absolute inset-0 grid place-content-center text-center\">\n <bdi className=\"text-[22px] leading-7 font-medium text-ds-text tabular-nums\">{valueFormatter(total)}</bdi>\n {/* Isolated in its own direction, as the total: the ring is drawn left to right in RTL too. */}\n {centerLabel && <bdi className=\"text-body-small text-ds-text-subtle\">{centerLabel}</bdi>}\n </div>\n </div>\n {showList && (\n <ul data-slot=\"donut-list\" className=\"m-0 flex min-w-0 flex-1 list-none flex-col gap-ds-100 p-0\">\n {rows.map((row, index) => (\n <li key={index} className=\"flex items-center gap-ds-100 text-body\">\n <span aria-hidden className=\"size-2.5 shrink-0 rounded-ds-xsmall\" style={{ background: partColor(index) }} />\n <bdi className=\"min-w-0 flex-1 truncate text-ds-text-subtle\">{row.name}</bdi>\n <bdi className=\"tabular-nums text-ds-text\">{valueFormatter(row.value)}</bdi>\n <bdi className=\"w-9 text-end tabular-nums text-ds-text-subtle\">{row.share}%</bdi>\n </li>\n ))}\n </ul>\n )}\n </div>\n </Shell>\n );\n}\n\n/* ── Gauge ────────────────────────────────────────────────────────────────── */\n\nexport type GaugeChartProps = Omit<FrameProps, \"emptyState\"> & {\n value: number;\n /** 0 by default. */\n min?: number;\n /** 100 by default: gauges are for bounded figures (occupancy, quota). */\n max?: number;\n /** A 2px tick on the arc, named under the value. */\n target?: number;\n valueFormatter?: ChartValueFormatter;\n};\n\nconst polar = (cx: number, cy: number, r: number, angle: number) => [cx + r * Math.cos(angle), cy - r * Math.sin(angle)] as const;\n\n/**\n * One bounded value against its range and a target: a half-circle 16px track in\n * `ds-background-neutral-pressed`, the value in `ds-chart-1` with round caps, the target as a 2px\n * `ds-text` tick, the value in the center with the target under it. Only for bounded percentages\n * (occupancy, quota), never money or open counts. A meter to screen readers.\n */\nexport function GaugeChart({ title, \"aria-label\": ariaLabel, period, value, min = 0, max = 100, target, valueFormatter = plain, isLoading, height = 160, ...table }: GaugeChartProps) {\n const { locale } = useLocale();\n const { isRtl } = useChartDirection();\n // A missing value reads as the minimum, and an empty range draws no fill or tick.\n const clamp = (n: number) => (Number.isFinite(n) ? Math.min(max, Math.max(min, n)) : min);\n const ratioOf = (n: number) => (max > min ? (clamp(n) - min) / (max - min) : 0);\n const ratio = ratioOf(value);\n const width = height * 2 - 32;\n const cx = width / 2;\n const cy = height - 16;\n const r = Math.min(cx, cy) - 12;\n const arc = (to: number) => {\n const [x0, y0] = polar(cx, cy, r, Math.PI);\n const [x1, y1] = polar(cx, cy, r, Math.PI - to * Math.PI);\n return `M ${x0} ${y0} A ${r} ${r} 0 0 1 ${x1} ${y1}`;\n };\n const targetRatio = target === undefined || !Number.isFinite(target) || max <= min ? undefined : ratioOf(target);\n const tick = targetRatio === undefined ? undefined : [polar(cx, cy, r - 12, Math.PI - targetRatio * Math.PI), polar(cx, cy, r + 12, Math.PI - targetRatio * Math.PI)];\n // A missing value is said as missing, not formatted as NaN: a dash in the center, the sentence for screen readers.\n const hasValue = Number.isFinite(value);\n const valueText = hasValue ? valueFormatter(value) : chartNoDataLabel(locale);\n const targetText = target === undefined ? undefined : gaugeTargetLabel(locale, valueFormatter(target));\n const rows = [{ name: title, value, target }];\n const columns: TableColumn<(typeof rows)[number]>[] = [\n { key: \"name\", header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: \"value\", header: chartValueLabel(locale), align: \"end\", render: (row) => valueFormatter(row.value) },\n ...(target === undefined ? [] : [{ key: \"target\", header: gaugeTargetLabel(locale, \"\").trim(), align: \"end\" as const, render: () => valueFormatter(target) }]),\n ];\n return (\n <Shell table={table} title={title} aria-label={ariaLabel} period={period} isLoading={isLoading} isEmpty={false} height={height} columns={columns} rows={rows}>\n <div\n role=\"meter\"\n aria-label={title ?? ariaLabel}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={clamp(value)}\n aria-valuetext={targetText ? `${valueText}, ${targetText}` : valueText}\n data-slot=\"gauge\"\n className=\"relative mx-auto h-full\"\n style={{ width }}\n >\n {/* The fill runs from the inline start, like a progress bar: the drawing is mirrored in RTL. */}\n <svg aria-hidden width={width} height={height} className={cn(\"block overflow-visible\", isRtl && \"-scale-x-100\")}>\n <path d={arc(1)} fill=\"none\" stroke=\"var(--ds-background-neutral-pressed)\" strokeWidth={16} strokeLinecap=\"round\" />\n {ratio > 0 && <path data-slot=\"gauge-value\" d={arc(ratio)} fill=\"none\" stroke=\"var(--ds-chart-1)\" strokeWidth={16} strokeLinecap=\"round\" />}\n {tick && <line data-slot=\"gauge-target\" x1={tick[0][0]} y1={tick[0][1]} x2={tick[1][0]} y2={tick[1][1]} stroke=\"var(--ds-text)\" strokeWidth={2} />}\n </svg>\n <div className=\"pointer-events-none absolute inset-x-0 bottom-ds-100 flex flex-col items-center\">\n <bdi data-slot=\"gauge-text\" className=\"text-[22px] leading-7 font-medium text-ds-text tabular-nums\">{hasValue ? valueText : \"—\"}</bdi>\n {targetText && <bdi className=\"text-body-small text-ds-text-subtle\">{targetText}</bdi>}\n </div>\n </div>\n </Shell>\n );\n}\n\n/* ── RadialChart ──────────────────────────────────────────────────────────── */\n\nexport type RadialChartProps = FrameProps & {\n /** Two or three values on one 0–100 scale. */\n data: readonly DonutDatum[];\n valueFormatter?: ChartValueFormatter;\n};\n\n/** Two or three values that share a 0–100 scale: 12px rings in `ds-chart-1`…`3` from 12 o'clock, with a key list. */\nexport function RadialChart({ title, \"aria-label\": ariaLabel, period, data, valueFormatter = (value) => `${value}%`, isLoading, emptyState, height = 200, ...table }: RadialChartProps) {\n const { locale } = useLocale();\n const animate = useChartAnimation();\n useOnce(data.length > 3, \"RadialChart: two or three rings; use a BarChart for more.\");\n const rings = data.slice(0, 3).map((ring, index) => ({ ...ring, fill: chartColor(index) }));\n const size = height - 8;\n const columns: TableColumn<DonutDatum>[] = [\n { key: \"name\", header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: \"value\", header: chartValueLabel(locale), align: \"end\", render: (row) => valueFormatter(row.value) },\n ];\n return (\n <Shell table={table} title={title} aria-label={ariaLabel} period={period} isLoading={isLoading} emptyState={emptyState} isEmpty={rings.length === 0} height={height} columns={columns} rows={rings}>\n <div data-slot=\"radial\" className=\"flex h-full min-w-0 items-center gap-ds-400\">\n <div className={cn(\"shrink-0\", LTR_PLOT)}>\n <RadialBarChart width={size} height={size} data={rings} innerRadius={size / 2 - 12 * rings.length - 6 * (rings.length - 1)} outerRadius={size / 2} barSize={12} startAngle={90} endAngle={-270} accessibilityLayer={false}>\n {/* No keyboard layer: with no tooltip its arrow keys would show nothing; the list gives every value. */}\n <PolarAngleAxis type=\"number\" domain={[0, 100]} tick={false} />\n <RadialBar dataKey=\"value\" cornerRadius={6} background={{ fill: \"var(--ds-background-neutral-pressed)\" }} isAnimationActive={animate} />\n </RadialBarChart>\n </div>\n <ul data-slot=\"radial-list\" className=\"m-0 flex min-w-0 flex-1 list-none flex-col gap-ds-100 p-0\">\n {rings.map((ring, index) => (\n <li key={index} className=\"flex items-center gap-ds-100 text-body\">\n <span aria-hidden className=\"size-2.5 shrink-0 rounded-ds-xsmall\" style={{ background: ring.fill }} />\n <bdi className=\"min-w-0 flex-1 truncate text-ds-text-subtle\">{ring.name}</bdi>\n <bdi className=\"tabular-nums text-ds-text\">{valueFormatter(ring.value)}</bdi>\n </li>\n ))}\n </ul>\n </div>\n </Shell>\n );\n}\n\n/* ── Sparkline ────────────────────────────────────────────────────────────── */\n\nexport type SparklineProps = {\n data: readonly number[];\n type?: \"line\" | \"bar\";\n /** 120 in tables; leave out to fill the width (Stat). */\n width?: number;\n /** 32 in tables, 28 in a Stat. */\n height?: number;\n /** Names the trend when the text next to it does not; a summary of the values otherwise. */\n \"aria-label\"?: string;\n valueFormatter?: ChartValueFormatter;\n};\n\n/**\n * A word-sized trend with no axes, beside the number it explains (in tables, Stats, cards): a 1.5px\n * `ds-chart-1` line over a 14% fill with the last point marked, or bars. No gridlines, labels or tooltip;\n * screen readers get a text summary (first, last, low, high) instead of a table.\n */\nexport function Sparkline({ data, type = \"line\", width, height = 32, \"aria-label\": label, valueFormatter = plain }: SparklineProps) {\n const { locale } = useLocale();\n const animate = useChartAnimation();\n const direction = useChartDirection();\n const points = data.map((value, index) => ({ index, value }));\n const summary =\n data.length > 0\n ? sparklineSummaryLabel(locale, {\n first: valueFormatter(data[0]!),\n last: valueFormatter(data[data.length - 1]!),\n min: valueFormatter(Math.min(...data)),\n max: valueFormatter(Math.max(...data)),\n })\n : chartNoDataLabel(locale);\n const plot =\n type === \"bar\" ? (\n <RechartsBarChart data={points} margin={{ top: 2, right: 0, bottom: 0, left: 0 }} barCategoryGap=\"20%\" accessibilityLayer={false}>\n <XAxis dataKey=\"index\" hide reversed={direction.reversed} />\n <YAxis hide domain={[(low: number) => Math.min(0, low), (high: number) => Math.max(0, high)]} />\n <Bar dataKey=\"value\" fill=\"var(--ds-chart-1)\" radius={1} isAnimationActive={animate} />\n </RechartsBarChart>\n ) : (\n <RechartsComposedChart data={points} margin={{ top: 3, right: 3, bottom: 3, left: 3 }} accessibilityLayer={false}>\n <XAxis dataKey=\"index\" hide reversed={direction.reversed} />\n <YAxis hide domain={[\"dataMin\", \"dataMax\"]} />\n <Area dataKey=\"value\" type=\"monotone\" stroke=\"var(--ds-chart-1)\" strokeWidth={1.5} fill=\"var(--ds-chart-1)\" fillOpacity={0.14} isAnimationActive={animate}\n // The last point marked.\n dot={(props: { cx?: number; cy?: number; index?: number }) =>\n props.index === data.length - 1 && props.cx != null && props.cy != null ? (\n <circle key=\"last\" data-slot=\"sparkline-last\" cx={props.cx} cy={props.cy} r={2.5} fill=\"var(--ds-chart-1)\" />\n ) : (\n <g key={props.index} />\n )\n }\n />\n </RechartsComposedChart>\n );\n return (\n <span role=\"img\" aria-label={label ?? summary} title={summary} data-slot=\"sparkline\" className={cn(\"inline-block align-middle\", width == null && \"w-full\", LTR_PLOT)} style={{ width, height }}>\n {width != null ? (\n React.cloneElement(plot, { width, height })\n ) : (\n <ResponsiveContainer width=\"100%\" height={height}>\n {plot}\n </ResponsiveContainer>\n )}\n </span>\n );\n}\n\n/* ── ScatterChart ─────────────────────────────────────────────────────────── */\n\nexport type ScatterChartProps<T extends Row> = FrameProps & {\n data: readonly T[];\n /** The key naming each point (a product's SKU); shown on hover and as the table's row header. */\n name: keyof T & string;\n x: keyof T & string;\n y: keyof T & string;\n /** A third measure as point size. */\n size?: keyof T & string;\n /** A second category: `ds-chart-2` and a diamond, so it differs by shape as well as hue. */\n category?: { key: keyof T & string; value: unknown; label: string; otherLabel: string };\n /** Axis names with their units (\"Daily price (€)\"). */\n xLabel: string;\n yLabel: string;\n valueFormatters?: { x?: ChartValueFormatter; y?: ChartValueFormatter };\n /** A least-squares trend line, dashed in `ds-chart-neutral`. */\n trendLine?: boolean;\n /** Opens the item: the row under the pointer. */\n onPointPress?: (row: T) => void;\n};\n\n/** Recharts' default tick count, set on the y axis so the width counts the ticks it draws. */\nconst SCATTER_TICKS = 5;\n/** The y axis's narrowest, as it was before it was sized from its ticks. */\nconst SCATTER_Y_MIN = 56;\n/** The y axis's name, turned on its side at the axis's outer edge: about 12px across (11px type), and 4px clear of the ticks. */\nconst AXIS_NAME_ROOM = 16;\n\n/** The least-squares line through the points, as its two ends; null under two points. */\nfunction fitTrend<T>(rows: readonly T[], px: (row: T) => number, py: (row: T) => number, x: string) {\n if (rows.length < 2) return null;\n const n = rows.length;\n const sx = rows.reduce((sum, row) => sum + px(row), 0);\n const sy = rows.reduce((sum, row) => sum + py(row), 0);\n const sxy = rows.reduce((sum, row) => sum + px(row) * py(row), 0);\n const sxx = rows.reduce((sum, row) => sum + px(row) ** 2, 0);\n const slope = (n * sxy - sx * sy) / (n * sxx - sx * sx || 1);\n const intercept = (sy - slope * sx) / n;\n const xs = rows.map(px);\n const [lo, hi] = [Math.min(...xs), Math.max(...xs)];\n return [\n { [x]: lo, trend: slope * lo + intercept },\n { [x]: hi, trend: slope * hi + intercept },\n ];\n}\n\n/**\n * Each item by two measures, to show a relation and outliers: 4px `ds-chart-1` points at 80%, an optional\n * dashed trend line in `ds-chart-neutral`, an optional size measure or second category (`ds-chart-2`\n * diamonds). Hover names the item; a press opens it, and so does a row of the shown data table, which is\n * the keyboard's way in. Axes carry their units.\n */\nexport function ScatterChart<T extends Row>(props: ScatterChartProps<T>) {\n const { title, \"aria-label\": ariaLabel, period, data, name, x, y, size, category, xLabel, yLabel, valueFormatters, trendLine, onPointPress, isLoading, emptyState, height = 260 } = props;\n const { locale } = useLocale();\n const animate = useChartAnimation();\n const direction = useChartDirection();\n const series = useChartSeries();\n const fx = valueFormatters?.x ?? plain;\n const fy = valueFormatters?.y ?? plain;\n const numeric = (row: T, key: string) => (typeof row[key] === \"number\" ? (row[key] as number) : NaN);\n // An item without both measures has no place on the plot, nor in its table.\n const valid = data.filter((row) => Number.isFinite(numeric(row, x)) && Number.isFinite(numeric(row, y)));\n const groups = category\n ? [\n { key: \"main\", label: category.otherLabel, rows: valid.filter((row) => row[category.key] !== category.value), color: chartColor(0), shape: \"circle\" as const },\n { key: \"category\", label: category.label, rows: valid.filter((row) => row[category.key] === category.value), color: chartColor(1), shape: \"diamond\" as const },\n ]\n : [{ key: \"main\", label: yLabel, rows: valid, color: chartColor(0), shape: \"circle\" as const }];\n // The trend follows what is shown: a group hidden from the legend leaves the fit too.\n const shown = groups.filter((group) => !series.isHidden(group.key)).flatMap((group) => group.rows);\n const trend = fitTrend(trendLine ? shown : [], (row) => numeric(row, x), (row) => numeric(row, y), x);\n // The trend is a series too: it gets a dashed key in the legend, and the legend can hide it.\n const legendItems = [\n ...(category ? groups.map((group) => ({ key: group.key, label: group.label, color: group.color })) : []),\n ...(trend ? [{ key: \"trend\", label: chartTrendLabel(locale), color: CHART_NEUTRAL, kind: \"line\" as const, strokeDasharray: \"6 4\" }] : []),\n ];\n // The y axis holds its name beside its ticks: as wide as its longest tick (Recharts' ticks for the y values\n // drawn, the trend's ends among them) plus the name's room, never under the 56px it always had. The x axis\n // needs no width: Recharts lets its ticks run the plot's width. Each y tick is given the room beside the name\n // (see axis-width's tickWrapWidth). Both axes draw the DS's ticks (ValueTick): a figure never parts from its\n // sign and currency, and an axis whose ticks pass their room shows them with compact figures, the y axis then\n // sized for those.\n const yTicks = valueAxisTicks([...shown.map((row) => numeric(row, y)), ...(trend && !series.isHidden(\"trend\") ? trend.map((end) => end.trend) : [])], SCATTER_TICKS);\n const yValues = formattedValues(yTicks, fy);\n const yAxisWidth = tickAxisWidth(yTicks.map(fy), SCATTER_Y_MIN, AXIS_NAME_ROOM, locale, yValues);\n // The top y tick's lines past one stand above its gridline: the 8px top margin takes them (axis-width's tickOverhang).\n const yOverhang = tickOverhang(yTicks.length > 0 ? fy(yTicks.at(-1)!) : undefined, tickWrapWidth(yAxisWidth, AXIS_NAME_ROOM), locale, yTicks.map(fy), yValues);\n const xTicks = valueAxisTicks(shown.map((row) => numeric(row, x)), SCATTER_TICKS);\n const columns: TableColumn<T>[] = [\n { key: name, header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n { key: x, header: xLabel, align: \"end\", render: (row) => fx(numeric(row, x)) },\n { key: y, header: yLabel, align: \"end\", render: (row) => fy(numeric(row, y)) },\n ...(category ? [{ key: category.key, header: category.label, render: (row: T) => (row[category.key] === category.value ? category.label : category.otherLabel) }] : []),\n ];\n return (\n <Shell table={props}\n title={title}\n aria-label={ariaLabel}\n period={period}\n isLoading={isLoading}\n emptyState={emptyState}\n isEmpty={valid.length === 0}\n height={height}\n legend={legendItems.length > 0 ? <ChartLegend items={legendItems} hidden={series.hidden} onToggle={series.toggle} /> : undefined}\n columns={columns}\n rows={valid}\n onRowAction={onPointPress}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <RechartsComposedChart margin={{ top: 8 + yOverhang, right: 8, bottom: 16, left: 8 }} accessibilityLayer>\n <CartesianGrid stroke=\"var(--ds-border)\" />\n <XAxis type=\"number\" dataKey={x as string} name={xLabel} tickFormatter={fx} tick={<ValueTick {...AXIS_TICK} axisTicks={xTicks} />} tickLine={false} axisLine={{ stroke: \"var(--ds-border-bold)\" }} reversed={direction.reversed}\n label={{ value: xLabel, position: \"insideBottom\", offset: -12, fill: \"var(--ds-text-subtle)\", ...LABEL_SIZE, ...isolatedLabel(xLabel, \"insideBottom\") }} />\n <YAxis type=\"number\" dataKey={y as string} name={yLabel} tickFormatter={fy} tick={<ValueTick {...AXIS_TICK} width={tickWrapWidth(yAxisWidth, AXIS_NAME_ROOM)} axisTicks={yTicks} />} tickLine={false} axisLine={false} orientation={direction.valueAxis} width={yAxisWidth} tickCount={SCATTER_TICKS}\n label={{ value: yLabel, angle: -90, position: direction.isRtl ? \"insideRight\" : \"insideLeft\", fill: \"var(--ds-text-subtle)\", ...LABEL_SIZE, ...isolatedLabel(yLabel, direction.isRtl ? \"insideRight\" : \"insideLeft\") }} />\n {size && <ZAxis type=\"number\" dataKey={size as string} range={[16, 160]} />}\n {groups\n .filter((group) => !series.isHidden(group.key))\n .map((group) => (\n <Scatter\n key={group.key}\n name={group.label}\n data={group.rows}\n fill={group.color}\n fillOpacity={0.8}\n shape={group.shape}\n isAnimationActive={animate}\n onClick={(point: { payload?: T }) => point.payload && onPointPress?.(point.payload)}\n className={onPointPress ? \"cursor-pointer\" : undefined}\n />\n ))}\n {trend && !series.isHidden(\"trend\") && <Line data={trend} dataKey=\"trend\" type=\"linear\" stroke={CHART_NEUTRAL} strokeDasharray=\"6 4\" strokeWidth={1.5} dot={false} activeDot={false} legendType=\"none\" isAnimationActive={animate} />}\n <Tooltip\n isAnimationActive={animate}\n cursor={{ strokeDasharray: \"3 3\", stroke: \"var(--ds-border-bold)\" }}\n content={({ active, payload }) => {\n const row = (payload?.[0]?.payload ?? null) as T | null;\n if (!active || !row || row[name] === undefined) return null;\n return (\n <ChartTooltip\n active\n label={String(row[name])}\n payload={[\n { dataKey: \"x\", name: xLabel, value: fx(numeric(row, x)), color: \"transparent\" },\n { dataKey: \"y\", name: yLabel, value: fy(numeric(row, y)), color: \"transparent\" },\n ]}\n />\n );\n }}\n />\n </RechartsComposedChart>\n </ResponsiveContainer>\n </Shell>\n );\n}\n\n/* ── RadarChart ───────────────────────────────────────────────────────────── */\n\nexport type RadarChartProps<T extends Row> = FrameProps & {\n /** One row per dimension (five to eight). */\n data: readonly T[];\n /** The dimension's name key. */\n dimension: keyof T & string;\n /** One or two profiles: the first is the main one, a second is the comparison. */\n categories: readonly (keyof T & string)[];\n labels?: Readonly<Partial<Record<string, string>>>;\n /** The shared scale's top. */\n max: number;\n valueFormatter?: ChartValueFormatter;\n};\n\n/**\n * One or two profiles across five to eight dimensions on one scale: five concentric polygon gridlines in\n * `ds-border`, labels outside in `ds-text-subtle`, the main profile `ds-chart-1` (2px edge, 18% fill), the\n * comparison `ds-chart-neutral` (12% fill, dashed edge).\n */\nexport function RadarChart<T extends Row>({ title, \"aria-label\": ariaLabel, period, data, dimension, categories, labels, max, valueFormatter = plain, isLoading, emptyState, height = 280, ...table }: RadarChartProps<T>) {\n const animate = useChartAnimation();\n const series = useChartSeries();\n useOnce(categories.length > 2, \"RadarChart: one or two profiles.\");\n useOnce(data.length > 0 && (data.length < 5 || data.length > 8), \"RadarChart: five to eight dimensions; a horizontal BarChart reads faster otherwise.\");\n const profiles = categories.slice(0, 2);\n const label = (key: string) => labels?.[key] ?? key;\n const styles = (key: string, index: number) =>\n index === 0 ? { color: chartColor(0), fillOpacity: 0.18, strokeDasharray: undefined } : { color: CHART_NEUTRAL, fillOpacity: 0.12, strokeDasharray: \"6 4\" };\n const columns: TableColumn<T>[] = [\n { key: dimension, header: title ?? ariaLabel ?? \"\", isRowHeader: true },\n // A value as the radar plots it (a numeric string too); \"—\" for a gap.\n ...profiles.map((key) => ({ key, header: label(key), align: \"end\" as const, render: (row: T) => { const value = chartNumber(row[key]); return value === undefined ? \"—\" : valueFormatter(value); } })),\n ];\n return (\n <Shell table={table}\n title={title}\n aria-label={ariaLabel}\n period={period}\n isLoading={isLoading}\n emptyState={emptyState}\n isEmpty={data.length === 0}\n height={height}\n legend={\n profiles.length > 1 ? (\n <ChartLegend\n items={profiles.map((key, index) => ({ key, label: label(key), kind: \"line\" as const, color: styles(key, index).color, strokeDasharray: styles(key, index).strokeDasharray }))}\n hidden={series.hidden}\n onToggle={series.toggle}\n />\n ) : undefined\n }\n columns={columns}\n rows={data}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <RechartsRadarChart data={data as Row[]} outerRadius=\"72%\" accessibilityLayer>\n <PolarGrid gridType=\"polygon\" stroke=\"var(--ds-border)\" />\n {/* Recharts' own tick, each dimension's name in its own reading direction (value-tick's NameTick). */}\n <PolarAngleAxis dataKey={dimension as string} tick={<NameTick polar fill=\"var(--ds-text-subtle)\" fontSize={11} />} />\n <PolarRadiusAxis domain={[0, max]} tickCount={6} tick={false} axisLine={false} />\n {profiles\n .filter((key) => !series.isHidden(key))\n .map((key) => {\n const style = styles(key, profiles.indexOf(key));\n return (\n <Radar key={key} name={key} dataKey={key as string} stroke={style.color} strokeWidth={2} strokeDasharray={style.strokeDasharray} fill={style.color} fillOpacity={style.fillOpacity} isAnimationActive={animate} />\n );\n })}\n <Tooltip isAnimationActive={animate} content={<PlottedTooltip valueFormatter={valueFormatter} labels={Object.fromEntries(profiles.map((key) => [key, label(key)]))} />} />\n </RechartsRadarChart>\n </ResponsiveContainer>\n </Shell>\n );\n}\n"]}
|
|
@@ -84,7 +84,7 @@ export declare function waterfallAxisWidth(low: number, high: number, format: Ch
|
|
|
84
84
|
* `ds-chart-1`, increases outlined with a 25% tint, decreases outlined and hatched, each labeled with its signed
|
|
85
85
|
* value. The arrow keys move between bars with the tooltip (change and running total); the data table has them all.
|
|
86
86
|
*/
|
|
87
|
-
export declare function WaterfallChart({ title, "aria-label": ariaLabel, period, start, steps, endLabel, valueFormatter, isLoading, emptyState, height }: WaterfallChartProps): React.JSX.Element;
|
|
87
|
+
export declare function WaterfallChart({ title, "aria-label": ariaLabel, period, start, steps, endLabel, valueFormatter, isLoading, emptyState, height, ...table }: WaterfallChartProps): React.JSX.Element;
|
|
88
88
|
export type HeatmapCell = {
|
|
89
89
|
/** The cell's row and column, as named in `rows` and `columns`. */
|
|
90
90
|
row: string;
|
|
@@ -134,5 +134,5 @@ export type HeatmapProps = FrameProps & {
|
|
|
134
134
|
* and the focused cell otherwise; a key that moves focus hands the tooltip back to the focused cell until the
|
|
135
135
|
* pointer enters another cell. Escape hides it.
|
|
136
136
|
*/
|
|
137
|
-
export declare function Heatmap({ title, "aria-label": ariaLabel, period, rows, columns, data, rowHeader, thresholds, valueFormatter, onCellPress, isLoading, emptyState }: HeatmapProps): React.JSX.Element;
|
|
137
|
+
export declare function Heatmap({ title, "aria-label": ariaLabel, period, rows, columns, data, rowHeader, thresholds, valueFormatter, onCellPress, isLoading, emptyState, ...table }: HeatmapProps): React.JSX.Element;
|
|
138
138
|
export {};
|
|
@@ -105,7 +105,7 @@ const signed = (value, format, plus = true) => `${value > 0 && plus ? "+" : valu
|
|
|
105
105
|
* `ds-chart-1`, increases outlined with a 25% tint, decreases outlined and hatched, each labeled with its signed
|
|
106
106
|
* value. The arrow keys move between bars with the tooltip (change and running total); the data table has them all.
|
|
107
107
|
*/
|
|
108
|
-
export function WaterfallChart({ title, "aria-label": ariaLabel, period, start, steps, endLabel, valueFormatter = plain, isLoading, emptyState, height = 240 }) {
|
|
108
|
+
export function WaterfallChart({ title, "aria-label": ariaLabel, period, start, steps, endLabel, valueFormatter = plain, isLoading, emptyState, height = 240, ...table }) {
|
|
109
109
|
const { locale } = useLocale();
|
|
110
110
|
const animate = useChartAnimation();
|
|
111
111
|
const direction = useChartDirection();
|
|
@@ -139,7 +139,7 @@ export function WaterfallChart({ title, "aria-label": ariaLabel, period, start,
|
|
|
139
139
|
{ key: "decrease", label: chartDecreaseLabel(locale), color: WATERFALL_KEY.decrease, kind: "bar" },
|
|
140
140
|
{ key: "total", label: total, color: WATERFALL_KEY.total, kind: "bar" },
|
|
141
141
|
].filter((item) => kinds.has(item.key)) }));
|
|
142
|
-
return (_jsx(Shell, { title: title, "aria-label": ariaLabel, period: period, isLoading: isLoading, emptyState: emptyState, isEmpty: isEmpty, height: height, legend: legend, columns: columns, rows: tableRows, children: _jsx("div", { "data-slot": "waterfall", className: "h-full min-w-0", children: _jsx(ResponsiveContainer, { width: "100%", height: "100%", children: _jsxs(RechartsBarChart, { data: rows, barCategoryGap: "20%", accessibilityLayer: true, margin: { top, right: 4, bottom: 0, left: 4 }, children: [_jsx("defs", { children: _jsx("pattern", { id: patternId, "data-slot": "waterfall-hatch", width: "5", height: "5", patternUnits: "userSpaceOnUse", patternTransform: "rotate(45)", children: _jsx("line", { x1: "0", y1: "0", x2: "0", y2: "5", stroke: "var(--ds-chart-1)", strokeWidth: "1.5" }) }) }), _jsx(CartesianGrid, { vertical: false, stroke: "var(--ds-border)" }), _jsx(XAxis, { dataKey: "key", reversed: direction.reversed, tickLine: false, axisLine: { stroke: "var(--ds-border-bold)" },
|
|
142
|
+
return (_jsx(Shell, { table: table, title: title, "aria-label": ariaLabel, period: period, isLoading: isLoading, emptyState: emptyState, isEmpty: isEmpty, height: height, legend: legend, columns: columns, rows: tableRows, children: _jsx("div", { "data-slot": "waterfall", className: "h-full min-w-0", children: _jsx(ResponsiveContainer, { width: "100%", height: "100%", children: _jsxs(RechartsBarChart, { data: rows, barCategoryGap: "20%", accessibilityLayer: true, margin: { top, right: 4, bottom: 0, left: 4 }, children: [_jsx("defs", { children: _jsx("pattern", { id: patternId, "data-slot": "waterfall-hatch", width: "5", height: "5", patternUnits: "userSpaceOnUse", patternTransform: "rotate(45)", children: _jsx("line", { x1: "0", y1: "0", x2: "0", y2: "5", stroke: "var(--ds-chart-1)", strokeWidth: "1.5" }) }) }), _jsx(CartesianGrid, { vertical: false, stroke: "var(--ds-border)" }), _jsx(XAxis, { dataKey: "key", reversed: direction.reversed, tickLine: false, axisLine: { stroke: "var(--ds-border-bold)" },
|
|
143
143
|
// Recharts' ticks, kept inside the chart: the last step's name may be wider than its band.
|
|
144
144
|
tick: _jsx(CategoryTick, { ...AXIS_TICK }), tickFormatter: (key) => rows[Number(key)]?.name ?? "" }), _jsx(YAxis, { orientation: direction.valueAxis, tickLine: false, axisLine: false,
|
|
145
145
|
// The DS's tick (ValueTick), given the room the axis has for it: a figure never parts from its sign and
|
|
@@ -209,7 +209,7 @@ const hasDuplicates = (names) => new Set(names).size !== names.length;
|
|
|
209
209
|
* and the focused cell otherwise; a key that moves focus hands the tooltip back to the focused cell until the
|
|
210
210
|
* pointer enters another cell. Escape hides it.
|
|
211
211
|
*/
|
|
212
|
-
export function Heatmap({ title, "aria-label": ariaLabel, period, rows, columns, data, rowHeader, thresholds, valueFormatter = plain, onCellPress, isLoading, emptyState }) {
|
|
212
|
+
export function Heatmap({ title, "aria-label": ariaLabel, period, rows, columns, data, rowHeader, thresholds, valueFormatter = plain, onCellPress, isLoading, emptyState, ...table }) {
|
|
213
213
|
const { locale } = useLocale();
|
|
214
214
|
const { isRtl } = useChartDirection();
|
|
215
215
|
const animate = useChartAnimation();
|
|
@@ -287,7 +287,7 @@ export function Heatmap({ title, "aria-label": ariaLabel, period, rows, columns,
|
|
|
287
287
|
const focusedSlot = slots[current];
|
|
288
288
|
const hoveredSlot = hovered === null ? undefined : slots[hovered];
|
|
289
289
|
const tipSlot = tip.hover && hoveredSlot ? hoveredSlot : tip.focus ? focusedSlot : undefined;
|
|
290
|
-
return (_jsx(Shell, { title: title, "aria-label": ariaLabel, period: period, isLoading: isLoading, emptyState: emptyState, isEmpty: values.length === 0, height: height, columns: tableColumns, rows: tableRows, children: _jsxs("div", { "data-slot": "heatmap", className: "relative flex min-w-0 flex-col gap-ds-150", children: [_jsx("div", { className: "min-w-0 overflow-x-auto", "data-slot": "heatmap-scroll", children: _jsxs("div", { role: "grid", "aria-label": title ?? ariaLabel, "data-slot": "heatmap-grid", className: "grid min-w-max gap-[3px]", style: { gridTemplateColumns: `max-content repeat(${columns.length}, minmax(1.5rem, 1fr))` }, onKeyDown: (event) => {
|
|
290
|
+
return (_jsx(Shell, { table: table, title: title, "aria-label": ariaLabel, period: period, isLoading: isLoading, emptyState: emptyState, isEmpty: values.length === 0, height: height, columns: tableColumns, rows: tableRows, children: _jsxs("div", { "data-slot": "heatmap", className: "relative flex min-w-0 flex-col gap-ds-150", children: [_jsx("div", { className: "min-w-0 overflow-x-auto", "data-slot": "heatmap-scroll", children: _jsxs("div", { role: "grid", "aria-label": title ?? ariaLabel, "data-slot": "heatmap-grid", className: "grid min-w-max gap-[3px]", style: { gridTemplateColumns: `max-content repeat(${columns.length}, minmax(1.5rem, 1fr))` }, onKeyDown: (event) => {
|
|
291
291
|
// Every key acts on the focused cell, never on the one under the pointer.
|
|
292
292
|
if (!focusedSlot)
|
|
293
293
|
return;
|