DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
Area Chart3
Bar Chart14
Composed Chart5
Line Chart6
  • Balance Tracker
  • Metric Switcher
  • Revenue Trend
  • Social Engagement
  • Sales vs Traffic
  • NFT Floor Price
Pie Chart2
Radial Chart3
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

  • Each stroke takes its label and color from a chartConfig key passed to ChartContainer, so add a key for every new series
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 a single trend with markers, a multi-line comparison, 2 measures on independent axes and a metric switcher.

Every block uses the shadcn Chart wrapper over Recharts, with each stroke taking its label and color from a chart config key. Period Tabs and Select menus swap the dataset, and trend Badge chips track the active range.

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 Account Balance Line Chart with Reference Line, Peak Dots and Stat Header
  • Metric Switcher Metric-switcher line chart card with clickable KPI tabs and pulsing animated dots
  • Revenue Trend Revenue performance card with line chart and period tabs (5D / 2W / 1M)
  • Social Engagement Multi-line social media activity chart with platform comparison and time-range selector
  • Sales vs Traffic Dual-axis e-commerce sales vs views line chart with period selector and KPI trend badges
  • NFT Floor Price Dark floor price analytics card with period tabs and monotone line chart

What These Line Chart Blocks Cover

  • A trend with markers A balance tracker with a date reference line and dots on peaks and troughs, and a revenue card whose total follows the active 5D, 2W or 1M tab.
  • Multi-line comparison Facebook, Instagram and LinkedIn activity on one axis with a dot legend and a time range select.
  • Dual axis Sales and views on 2 independent Y axes as solid and dashed lines, with a 30 versus 90 day switch.
  • Metric switcher 4 KPI tabs that swap which series the line draws, and a dark NFT floor price tracker.

Related Shadcn Chart Categories

  • Area Chart Area chart cards with gradient fills, stacked series, period tabs and hover tooltips for trends over time.
  • Bar Chart Bar and column charts, grouped and stacked bars, lollipop stems and segmented bar meters for comparing values.
  • Composed Chart Composed charts that layer areas and lines on one axis, with reference lines, goals and release markers.
  • Pie Chart Pie and donut chart cards with center totals, per-segment legends and period tabs for share of a whole.
  • Radial Chart Radial gauges with semicircle and full arcs, segmented rings and status labels for progress toward a target.
  • 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 (301) Browse 301 Shadcn Application blocks across 23 categories.
  • Shadcn Data Grid Blocks (42) Browse 42 Shadcn Data Grid blocks across 9 categories.
  • Shadcn Charts Blocks (47) Browse 47 Shadcn Charts blocks across 8 categories.
  • Shadcn Solutions Blocks (74) Browse 74 Shadcn Solutions blocks across 10 categories.
  • Shadcn AI & Agents Blocks (18) Browse 18 Shadcn AI & Agents blocks across 2 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. The legend and tooltip pick it up from the config.

Can 2 series use different scales?

Yes. The sales versus views 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 ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

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.