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

Lines show a dot on every data point by default. Set :dot="false" to hide the dots, or pass an object to style them.

LineChart props

<LineChart> takes the chart container props, including bar sizing.

Line props

PropTypeDefaultDescription
data-keyrow path or accessorrequiredField with the value
typeCurveType'linear'Curve interpolation (monotone, step, natural, …)
strokestringseries paletteLine color
stroke-widthnumber1Line width
dotboolean | objecttrueShow a dot on every point; an object sets dot attributes
active-dotboolean | objecttrueShow a dot on the active point
labelboolean | object—Show a value label on every point
connect-nullsbooleanfalseDraw across missing values
dataArraythe chart's dataRows for this series only
x-axis-id, y-axis-idstring | number0Axes this series uses
namestring | number—Name in the legend and tooltip
unitstring | number—Unit after tooltip values
legend-typeLegendType'line'Legend icon
tooltip-type'none'—Set 'none' to leave the series out of the tooltip
hidebooleanfalseHide the series
classstring—Class on the series layer
is-animation-activebooleanthe chart's valueAnimate this series
transitionChartTransitionthe chart's valueTiming and easing of data changes

Events: @click, @mouseenter, @mouseleave with (point, index, event), and @animation-start, @animation-end.

Line slots

SlotPropsDescription
#shapeCurvePropsReplace the line path
#dot{ cx, cy, index, value, payload }Replace a point dot
#activeDot{ cx, cy, r, fill, stroke, index, dataKey, payload, value }Replace the active dot
#labelLabelListSlotPropsReplace a point label
Copyright © 2026