DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
Area ChartAdded a new Inbound Leads area chart block4
Bar Chart12
Composed Chart5
Line Chart6
  • Balance Tracker
  • Metric Switcher
  • Revenue Trend
  • Social Engagement
  • Sales vs Traffic
  • Floor Monitor
Pie Chart3
Radial Chart3
Sankey ChartNew Sankey Chart category with 3 flow chart blocks3
Slope ChartNew Slope Chart category with 2 rank-shift chart blocks2
Sparkline11
Status Tracker3

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 ChartContainer config; chart-6 and chart-26 plot in a ComposedChart with an Area, the others in a LineChart

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)
Markdownhttps://reui.io/blocks/chart/line-chart.md
MCPsearch({ query: "line chart", type: "block", category: "line-chart" })
Full index for agents:llms.txtReUI MCP setup

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?

Add a key with its label and color to the chart config, add the value to each data row, and render another Line with that data key. Where a block writes its legend or readout by hand, add the new series there too.

Can 2 series use different scales?

Yes. The sales versus traffic block binds each line to its own Y axis through yAxisId, so a count and a currency can share one chart.

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K
  1. Blocks
  2. Charts
  3. Line Chart
Markdown

Shadcn Line Chart Blocks: Multi-Line and Dual Axis

6 line chart cards for trends and comparisons, from a single revenue stroke to multi-line channels and 2 measures on independent axes.