For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
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
- Compact tiles where each figure carries a small trend of its own: use the Sparkline blocks
Agent notes
- Series colors live in the
ChartContainerconfig; chart-6 and chart-26 plot in aComposedChartwith anArea, the others in aLineChart
Third-party API docs
- Recharts v3: API reference, docs, used by 6 of 6 blocks
- Sonner v2: API reference, docs, used by 6 of 6 blocks
- Motion v12: API reference, docs, used by 2 of 6 blocks (the docs follow the latest Motion, with no React API break since v12)
https://reui.io/blocks/chart/line-chart.mdsearch({ query: "line chart", type: "block", category: "line-chart" })Shadcn Line Charts for Trends, Comparisons and Dual Axes
Lines are the right mark when the shape of a trend matters more than its volume, or when several series share one axis and fills would hide each other. These blocks cover an account balance with its high and low marked, revenue against the period before, social channels on one metric, sales against views on 2 axes, a KPI metric switcher and an NFT floor price against its top bid.
Every block uses the shadcn Chart wrapper over Recharts, with a chart config naming each series and its color. A range switch swaps the dataset, every block exports a CSV, and the balance and sales cards pick a line color with a ReUI ColorPicker.
All Line Chart Blocks
Open any block on its own page for a live preview, the components it is built from, and the install command.
- Balance Tracker Portfolio balance line chart with range tabs, high and low markers and a benchmark overlay
- Metric Switcher Metric switcher trend chart with KPI tiles, a previous-period ghost line and event annotations
- Revenue Trend Revenue trend line chart with subscription and one-time streams against the previous period
- Social Engagement Social engagement line chart comparing channels by metric with a per-channel breakdown table
- Sales vs Traffic Dual-axis sales vs traffic line chart with period compare, line color pickers and store KPIs
- Floor Monitor NFT floor price line chart with a top bid spread band and a floor alert
What These Line Chart Blocks Cover
- Balance with markers A daily account balance over 1M, 3M, YTD or 1Y with high and low markers, a rebased benchmark to compare against and an average line.
- Revenue against the period before Net revenue over 7 days to 12 months beside subscription and one-time lines, a dashed baseline from the previous period or last year and a running total view.
- Multi-line channels Facebook, Instagram and LinkedIn as lines on one metric at a time, from engagement rate to link clicks, with previous period ghosts and a per-channel table.
- Dual axis Sales and product views on 2 value axes over 30 days, 13 weeks or 12 months, with a Compare toggle for the previous period and a color per line.
- Metric switcher 4 KPI tiles, orders, revenue, active users and p95 latency, that each switch one daily area trend read against the previous period, with release and sale annotations.
- Floor price alert An NFT collection's daily floor against its top bid with the spread as a band, and a floor alert level that tints every close below it.
Related Shadcn Chart Categories
- Area Chart Area chart cards with gradient fills, comparisons to a prior period or baseline, hover readouts and CSV export for trends over time.
- Bar Chart Bar and column charts, stacked hourly outcomes, 3D prisms, diverging lanes and lollipop stems for comparing values.
- Composed Chart Composed charts that mix bars, lines and areas on one axis: liquidity flows, sales against a goal, cashflow, margin and a canary rollback.
- Pie Chart Donut cards for share of a whole, with source rows, version drill-down and period switches, plus a budget rose for spend against budget.
- Radial Chart Radial cards for a value against a limit or target: concentric error budget rings, API health ring gauges and a day clock of inflows.
- Slope Chart Slope charts for rank shifts between 2 orderings of the same items, with weighted lines, hover tracing and animated re-sorts.
- Sparkline KPI tiles and metric lists where each value pairs with a small line, area or bar sparkline and a delta.
- Status Tracker Per-row status trackers for run history, deploy stages and pipelines, with hover details and filters.
- Stats Number-first KPI strips for when the metric leads and a trend line would only be decoration.
- Dashboard Full overview screens that combine a metric row, a chart layer and a data grid into one page.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
How do I add another line?
Can 2 series use different scales?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.