Metric Chart

Self-framed single-series telemetry panel: corner brackets, kicker and title header, and a status badge around one fitted-domain area chart. The fitted y-domain keeps non-zero-floor readings like altitude or latency filling the plot instead of flattening into a sliver.

/// StationOrbital Altitude
Live

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/andromeda-metric-chart
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
labelstring'/// Telemetry'Card kicker label.
titlestring'Metric'Card title.
descriptionstring-Optional description line.
dataobject[]-Points of { [xKey], [dataKey] }.
dataKeystring'v'-
xKeystring't'-
unitstring-Shown muted after the tooltip value.
variant'accent'|'warning'|'fault''accent'Badge only — chart ink stays neutral.
badgeTextstring|null'Live'null hides the badge.
domainArray['dataMin - 1', 'dataMax + 1']recharts y-domain (fitted).
xIntervalnumber3-
heightnumber|'fill'224Plot height; 'fill' grows into a flex parent.
classNamestring-Additional CSS classes applied to the root element.
styleReact.CSSProperties-Inline styles applied to the root element.

More Andromeda components