Charts

Line Chart

Build line charts with custom dots, labels, and multiple series

Line charts display data as a series of points connected by line segments.

Simple Line Chart

A basic line chart with a single series.

Multi-Line Chart

Add multiple <Line> components for multi-series charts.

Dashed Line Chart

Use stroke-dasharray for dashed lines.

Step Line Chart

Use type="step" for step-wise transitions.

Line Chart with Dots

Use the dot prop to show dots on every data point.

Line props

PropTypeDefaultDescription
dataKeystring | number | FunctionrequiredKey from data
typeCurveType'linear'Curve type (monotone, step, natural, etc.)
strokestring'#3182bd'Line stroke color
strokeWidthnumber1Line width
dotboolean | objectfalseShow dots on data points
activeDotboolean | objecttrueShow active dot on hover
connectNullsbooleanfalseConnect across null values
hidebooleanfalseHide the line
isAnimationActivebooleantrueEnable animation
Copyright © 2026