RechartsTime Series

Time Series Line Chart

Multi-group trends with presidential context, confidence interval toggles, and interactive legend. Ideal for tracking indicators over time with demographic breakdowns.

Preview placeholder

timeseries-line-v1

Installation

Terminal
npx @ontopic/viz add recharts/generic/timeseries-line-v1

Props

PropTypeDescription
dataDataPoint[]Array of data points with year, value, and optional CI bounds
metadataTimeSeriesMetadataChart title, subtitle, source, and configuration
showCIbooleanToggle confidence interval display
heightnumberChart height in pixels

See full TypeScript interface on GitHub for all props.

Usage Example

TypeScript
import { TimeSeriesChart } from '@/viz/components/recharts/generic/timeseries-line-v1';

<TimeSeriesChart
  data={timeSeriesData}
  metadata={{ title: 'Trend Over Time', source: { name: 'BRFSS' } }}
/>