EEnterUI
DocsComponentsThemesDonation
Get Started
      • LineChart
      • AreaChart
      • StackedBarChart
      • Heatmap
EnterUIDocsData AnalyticsMetrics and ChartsChartsLineChart
Data AnalyticsUpdated 6 May 2026

LineChart

Responsive SVG line chart for one product metric over time.

LineChart shows a single trend for usage, revenue, releases, or throughput without a chart dependency.

#Default usage

Usage trend

A quiet line for one primary dashboard metric.

API requests over timeMon: 1200Tue: 1680Wed: 1420Thu: 2100Fri: 1960
Code
<LineChart
  ariaLabel="API requests over time"
  data={[
    { day: "Mon", requests: 1200 },
    { day: "Tue", requests: 1680 },
    { day: "Wed", requests: 1420 },
    { day: "Thu", requests: 2100 },
    { day: "Fri", requests: 1960 },
  ]}
  showDots
  tone="info"
  xKey="day"
  yKey="requests"
/>

#Import

Code
import { LineChart } from "@froggdesign/enter-ui-react";

#Patterns

Release throughput

Use gridless mode when the metric sits beside a numeric summary.

Release throughput

#Accessibility

Pass ariaLabel or aria-label so the SVG has a useful image name. Pair the chart with a visible metric when exact values matter.

#API

  • data: records for the trend.
  • xKey: category or time field.
  • yKey: numeric field.
  • height: SVG height.
  • ariaLabel: accessible chart label.
  • showGrid: toggles the baseline grid.
  • showDots: renders point markers.
  • tone: default, success, info, warning, or error.
  • className: style hook for layout.
  • Legacy labelKey and valueKey remain supported.

#Styling

LineChart uses .eui-line-chart, .eui-line-chart__grid, .eui-line-chart__line, and .eui-line-chart__point. Prefer className for layout and keep chart colors token-based through tone.

PreviousSparkline
NextAreaChart

On this page

  1. Default usage
  2. Import
  3. Patterns
  4. Accessibility
  5. API
  6. Styling