Chart

Recharts wired to the five chart colors, terminal tooltip and stepped reveal.

pulls inrecharts@afterglow/theme

Relay strength

Last seven channels, dB

76

Installation

npx shadcn@latest add @afterglow/chart

Composition

Component structure.

ChartContainer
├── ChartStyle
├── ChartTooltip
│   └── ChartTooltipContent
└── ChartLegend
    └── ChartLegendContent

Channel load

Square bars compare traffic in both directions without introducing another color scale.

Channel load

Messages per minute

Volume share

A compact ring chart for part-to-whole data, with the same token-driven legend and tooltip.

Traffic share

Current uplink volume

API Reference

Recharts still owns the plot. These parts connect it to Afterglow's colors, tooltip, legend and mount motion.

ChartContainer

Provides the series config and a responsive container. The chart draws in with a short stepped reveal when it mounts.

PropTypeDefault
configChartConfig-
initialDimension{ width: number; height: number }{ width: 320, height: 200 }

Everything else is Recharts's API, documented there.