Optionalchart?: "line" | "bars"How the sessions are drawn — a line (default) or one bar per session —
in both the compact chart and the larger trendPoints chart.
OptionalchartLoading?: booleanThe history behind the chart is still loading: the chart slot shows a pulsing placeholder instead of "No historic data", which would otherwise flash up until the earlier sessions arrive.
OptionalformatTrendValue?: (value: number) => stringOptionalhighlightIndex?: numberOptionalroomyBars?: booleanThe compact bar chart (chart="bars" without trendPoints) a step taller
(48 px instead of 28) over a soft baseline, as the loading skeleton draws
it. Off: the portal's look.
OptionaltrendPoints?: readonly MetricTrendPoint[]OptionalvaluePlaceholder?: booleanOptionalvaluePrefix?: string | nullOptionalvariant?: "default" | "technique"
A metric stat card: a label, a big value + unit, an optional signed-percent trend badge, and a sparkline of the metric across recent sessions. The trend badge and sparkline are tinted by
color(typically a metric-category colour), so direction is read from the +/− sign, not red/green.Pure/presentational — the caller formats
value/unit, computestrendPct, and supplies the chronologicalseries(oldest → newest). Used by the tracking Overview tab and the portal session Summary tab.Pass
trendPoints(+formatTrendValue) to opt into the larger chart with a value axis and a date axis, shown on wide layouts; without it the card keeps the compact sparkline.trendPointsmirrorseriesplus each point's date;formatTrendValueformats the y-axis ticks (the caller owns units). The chart degrades to the bare line below thelgbreakpoint.