Chart.Line

A plain line.

JanFebMarAprMayJun01020304050
Chart of Projects published over 6 points
monthProjects published
January24
February31
March28
April35
May42
June38
<Chart.Line />

API

PropTypeDefault
curveChartCurve"monotone"How points are joined: linear, monotone or step.
dotsbooleanfalseDraw a dot on every point, not only the active one.
keysreadonly string[]Series to draw. Defaults to the root's value keys.
strokeWidthnumber2Width of the line, in pixels.

Plus every <g> prop. Source: chart/components/chart-line.tsx.

curve is the one to think about: monotone smooths without overshooting real values, step is honest about readings that hold between samples, and linear claims nothing about what happened in between.