Core

Line Chart

A line chart shows how values change across a continuous axis and is well suited for trends, forecasts, and performance tracking.

Example

Usage

Features

  • Best for trend and time-series data.
  • Supports multiple series with distinct labels.
  • Uses LibravelUI theme tokens for series colors.
  • Can be combined with the shared tooltip and legend.
  • Supports custom dots, axes, and line types.

Installation

Copy the shared chart utilities and the chart component you need into your project.

components/ui/core/charts/chart-shell.tsx
components/ui/core/charts/chart-tooltip.tsx
components/ui/core/charts/line-chart.tsx
npx libravelui@latest add line-chart

Anatomy

import { LineChart } from "@/components/ui/core/charts/line-chart";
<LineChart
  data={data}
  dataKey="month"
  config={{
    revenue: { label: "Revenue" },
    profit: { label: "Profit" },
  }}
/>

Props

Loading types…

Accessible React component library to copy, customize, and own your UI. Built for Next.js, Vite, and Laravel.

Crafted by dervyon. Peep the Source Code on GitHub.

Hosted on Vercel. The source code's got the MIT license.

2025 - 2026 · LibravelUI

Starter Kits

Templates

    Coming Soon

Labs