Line Chart

Multi-series lines with solid, dashed, bump, step, gradient, and glow strokes.

Basic chart

@spectrumui/line-chart
  • Desktop
  • Mobile

strokeVariant='animated-dashed'

  • Desktop
  • Mobile

curveType='bump'

  • Desktop
  • Mobile

curveType='step'

  • Desktop
  • Mobile

gradient colors

  • Desktop
  • Mobile

glowing

  • Desktop
  • Mobile

Manual installation

Prefer to copy by hand? Open the Code tab on any example above and switch to the file you need — every source file is there, not just the demo. Drop them in your project like this:

  • chart-kit.tsxcomponents/spectrumui/charts/chart-kit.tsx
  • line-chart.tsxcomponents/spectrumui/charts/line-chart.tsx

Then install its dependencies: npm i recharts framer-motion

Usage

import { LineChart } from '@/components/spectrumui/charts/line-chart';

<LineChart data={data} curveType="bump" />
Work with me