Line Chart

Lines through points, for trends and rates over time.

Response time
Last 24 hours

Installation

  1. Add the registryOnce per project
  2. Add line-chart

Usage

LineChartSeries draws one series. The axes, tooltip, legend and config come from Chart.

Composition

Examples

Dots

dots marks every point. This one also uses curve="linear".

Target

A dashed series works for a target, and curve="stepAfter" holds it level until it changes. The y-axis starts at zero; domain={["auto", "auto"]} fits it to the data instead.

Steps

curve="step" suits counts that jump between values.

Props

LineChart

LineChartSeries

LineChartSeries takes the props of Recharts' Line too, such as connectNulls.