# Shadcn Line Chart blocks

> Line chart cards with single and multi-series lines, dual axes, reference lines and metric switchers.

- Type: Pro blocks (Charts)
- Page: https://reui.io/blocks/chart/line-chart
- Blocks: 6
- Installs with a ReUI Pro or Ultimate license; setup: https://reui.io/docs/license-setup

## When to use

- A balance, price or revenue trend as a single stroke with period tabs and a peak marker
- Several platforms or channels compared as separate strokes on one time axis
- Two measures on different scales plotted against left and right axes

## When not to use

- A trend that needs its volume emphasized with a filled region below it: use the [Area Chart blocks](https://reui.io/blocks/chart/area-chart.md)
- Compact tiles where each figure carries a small trend of its own: use the [Sparkline blocks](https://reui.io/blocks/chart/sparkline.md)

## Agent notes

- Each stroke takes its label and color from a `chartConfig` key passed to `ChartContainer`, so add a key for every new series

## Blocks

- [Balance Tracker](https://reui.io/blocks/chart/line-chart/chart-4.md): Account Balance Line Chart with Reference Line, Peak Dots and Stat Header. Best for one tall balance line with dots only past fixed high and low cutoffs and at a dashed date marker, under computed High and Low figures.
- [Metric Switcher](https://reui.io/blocks/chart/line-chart/chart-6.md): Metric-switcher line chart card with clickable KPI tabs and pulsing animated dots. Best for a row of 4 KPI toggle buttons that redraw one dashed line with pulsing points, each change computed against the prior value.
- [Revenue Trend](https://reui.io/blocks/chart/line-chart/chart-22.md): Revenue performance card with line chart and period tabs (5D / 2W / 1M). Best for a rounded revenue card with an Export button, full width 5D, 2W and 1M tabs above a line on vertical grid lines, and a footnote.
- [Social Engagement](https://reui.io/blocks/chart/line-chart/chart-23.md): Multi-line social media activity chart with platform comparison and time-range selector. Best for a comparison of 3 platform lines on one shared axis with no headline total, a centered dot legend and a 24 hour to 30 day Select.
- [Sales vs Traffic](https://reui.io/blocks/chart/line-chart/chart-24.md): Dual-axis e-commerce sales vs views line chart with period selector and KPI trend badges. Best for sales and views on 2 independent hidden axes, solid against dashed, with summed period totals, sales in pounds, and a 30 or 90 day Select.
- [NFT Floor Price](https://reui.io/blocks/chart/line-chart/chart-26.md): Dark floor price analytics card with period tabs and monotone line chart. Best for a hardcoded dark slate card with an emerald price line, Month and Max tabs, and the latest point as a large price under the plot.

Every ReUI item has a twin like this one; the index is https://reui.io/llms.txt. Agents with the ReUI MCP (https://reui.io/docs/mcp) get the same guidance from the getters named above.
