Line chart
One value, read as a trend.
Definition · Updated Nov 2, 2026
A line chart joins one value over time, so the eye reads its direction before its numbers. Rises, drops and flat runs show up at once. Use it for latency, prices, sign-ups or any single measure that changes continuously.
Pay once. Every update included.
Live preview
Sample data: P95 latency, us-east, last 24 hours
- Data shape
- One value per point in time
- Good for
- Latency, prices, daily counts
- Avoid when
- Each period is a separate total to compare
- Sizes
- XS, S, M and L, re-laid out from the data
Anatomy
Inspect it like the Figma file.
The same layers, names and tokens as the component. Select one to read its size, fill and style.
Layers
010 / Line
- Layer
- area
- Type
- Vector
- Size
- 724 × 210
- Fill
- data/primary
- Group
- Marks · 26
Layers
010 / Line
- Layer
- area
- Type
- Vector
- Size
- 404 × 143
- Fill
- data/primary
- Group
- Marks · 26
Layers
010 / Line
- Layer
- area
- Type
- Vector
- Size
- 243 × 122
- Fill
- data/primary
- Group
- Marks · 26
Sizes
Re-laid out, never scaled.
The same data at XS, S, M and L. Every size is redrawn from the data, so text and line weights never shrink.
M against S
Width360 px480 px
Plot328 px440 px
Labels99
Marks2626
Height212 px246 px
Same tokens at every size: text styles, 1 px lines and mark radius stay put.
When to use
One measure, moving.
Three signs it fits, and three signs another type fits better.
Is the direction enough on its own?
The amount, not only the trend.
Yes: Keep the line
Code and Figma
One name in Figma and in code.
Every Figma property is a prop with the same name and values. One command installs it.
Figma
chart/010-line
npx shadcn add @chartory/lineimport { Line } from "@/components/chartory/line"import { p95Latency } from "./p95-latency"export function P95Latency() { return ( <Line data={p95Latency} size="m" legend={false} /> )}Hearth widget
Line as a widget.
The chart in a Hearth card with a hero number and two blocks. One token set, light and dark.
EmberPreset
ChartoryDefault preset
Pick the blocks, the size and the preset for your own widget.
Read the Hearth widget docsFAQ
Line chart questions.
What people ask before they put a line in a dashboard.
Something else?
hello@usechartory.comUse the line when only the direction matters, as with latency. Use an area when the amount under the line matters too, as with a balance or a price.
When the same measure is split, such as latency per region. One line per region on one axis shows who leads and when they cross.
One data object in the sample’s shape: one value per point in time. The docs page lists every field and links its JSON Schema; the sample data comes with the component, so you can start from it and swap in your own.
Series take the preset’s data colours in order, and states such as up, down or warning take its status colours. Change the preset in Figma or in code to recolour every chart at once.
XS, S, M and L, in light and dark. Each size is laid out again from the data, so text and lines keep their size.
Yes. It plays in when it scrolls into view, and when the data changes every mark moves from its old place to its new one. With reduced motion on, it does not move.
Yes. The React component is free in the public registry in Hearth, no token needed; Signal comes with Code and Complete. The Figma component comes with Figma and Complete.
Ask for it by name. The MCP server tells the agent what data it needs and runs the same command: npx shadcn add @chartory/line. You review the diff.
Related types
Other ways to show change over time.
The same question, a different shape of answer. Every type ships in Figma and in code.
Same family
Change over time
Trends, levels and seasons across days, months or years.