Line chart

Multi-series trends and rates — conversion, win rate, turnover. Point markers (none / last / all), step curves and direct end labels that do not rely on colour.

Recharts LineChart charts/line-chart.tsxtheme · material · accent · density · font

Sep 7 – Oct 19. Pricing page: low 6.4% (Sep 21), high 8.8% (Oct 19), average 8%. Landing pages: low 3.9% (Sep 21), high 5.5% (Oct 19), average 5%. Blog: low 1.1% (Sep 7), high 1.8% (Oct 19), average 1%.

Conversion rate by entry page
WeekPricing pageLanding pagesBlog
Sep 7, 20266.7%4.2%1.1%
Sep 14, 20267.1%4.5%1.2%
Sep 21, 20266.4%3.9%1.4%
Sep 28, 20267.6%4.8%1.3%
Oct 5, 20267.9%5.1%1.6%
Oct 12, 20268.3%4.9%1.5%
Oct 19, 20268.8%5.5%1.8%

Installation

$ pnpm add @vamos-ui/react

The whole kit as one package — get updates by bumping the version. Add the styles to globals.css: @import "@vamos-ui/react/styles.css";

Usage

import { LineChart } from "@vamos-ui/react/charts";

<LineChart title="Win rate" data={rows} x="month" config={{ maya: { label: "Maya", format: "percent" } }} endLabels />

More than 6 series logs a development hint (group into Other or use small multiples).

Examples

Direct labels (CRM)

endLabels writes each series name at its last point and drops the legend; recommended from 3 series.

May – Oct. Maya: low 31% (May), high 39% (Oct), average 35%. Priya: low 26% (Jun), high 36% (Oct), average 32%. Diego: low 24% (May), high 31% (Sep), average 28%. Tom: low 19% (May), high 27% (Oct), average 23%.

Win rate by rep
MonthMayaPriyaDiegoTom
May31%28%24%19%
Jun34%26%27%22%
Jul33%31%29%21%
Aug37%33%28%25%
Sep36%35%31%24%
Oct39%36%30%27%

Step (price changes)

curve="step" for values that change in jumps; dots="all" marks every change.

Jan 1 – Oct 1. Business seat: low $79.00 (Jan 1), high $99.00 (Oct 1), average $85.67. Team seat: low $29.00 (Jan 1), high $35.00 (Aug 1), average $32.00.

List price per seat
DateBusiness seatTeam seat
Jan 1, 2026$79.00$29.00
Mar 1, 2026$79.00$29.00
Apr 15, 2026$79.00$32.00
Jun 1, 2026$89.00$32.00
Aug 1, 2026$89.00$35.00
Oct 1, 2026$99.00$35.00

API

LineChart

PropTypeDefault
…Chart props
See Chart frame.
ChartProps—
series
Keys to draw.
string[]—
curve
Interpolation.
"monotone" | "linear" | "step""monotone"
dots
Point markers.
"none" | "last" | "all""last"
endLabels
Direct labels at line ends instead of a legend (≤ 4 series).
booleanfalse
reference
Reference lines.
{ y, label?, color? }[]—