Time series chart
Dates on the x axis, a comparison line and a crosshair tooltip.
Jul 1, 2026 to Aug 29, 2026. This period: first 1,200, last 2,295, low 1,200, high 2,522. Previous: first 900, last 1,485, low 900, high 1,557.
| Date | This period | Previous |
|---|---|---|
| Jul 1, 2026 | 1,200 | 900 |
| Jul 2, 2026 | 1,294 | 933 |
| Jul 3, 2026 | 1,388 | 965 |
| Jul 4, 2026 | 1,479 | 996 |
| Jul 5, 2026 | 1,568 | 1,025 |
| Jul 6, 2026 | 1,653 | 1,052 |
| Jul 7, 2026 | 1,733 | 1,076 |
| Jul 8, 2026 | 1,528 | 1,097 |
| Jul 9, 2026 | 1,598 | 1,115 |
| Jul 10, 2026 | 1,661 | 1,129 |
| Jul 11, 2026 | 1,719 | 1,139 |
| Jul 12, 2026 | 1,770 | 1,146 |
| Jul 13, 2026 | 1,816 | 1,150 |
| Jul 14, 2026 | 1,856 | 1,150 |
| Jul 15, 2026 | 1,611 | 1,147 |
| Jul 16, 2026 | 1,642 | 1,141 |
| Jul 17, 2026 | 1,669 | 1,133 |
| Jul 18, 2026 | 1,693 | 1,124 |
| Jul 19, 2026 | 1,715 | 1,113 |
| Jul 20, 2026 | 1,736 | 1,102 |
| Jul 21, 2026 | 1,758 | 1,091 |
| Jul 22, 2026 | 1,501 | 1,080 |
| Jul 23, 2026 | 1,526 | 1,071 |
| Jul 24, 2026 | 1,554 | 1,064 |
| Jul 25, 2026 | 1,586 | 1,059 |
| Jul 26, 2026 | 1,622 | 1,057 |
| Jul 27, 2026 | 1,664 | 1,058 |
| Jul 28, 2026 | 1,711 | 1,063 |
| Jul 29, 2026 | 1,484 | 1,071 |
| Jul 30, 2026 | 1,544 | 1,082 |
| Jul 31, 2026 | 1,609 | 1,097 |
| Aug 1, 2026 | 1,680 | 1,116 |
| Aug 2, 2026 | 1,757 | 1,138 |
| Aug 3, 2026 | 1,839 | 1,163 |
| Aug 4, 2026 | 1,925 | 1,191 |
| Aug 5, 2026 | 1,734 | 1,221 |
| Aug 6, 2026 | 1,827 | 1,252 |
| Aug 7, 2026 | 1,920 | 1,284 |
| Aug 8, 2026 | 2,015 | 1,317 |
| Aug 9, 2026 | 2,109 | 1,350 |
| Aug 10, 2026 | 2,202 | 1,381 |
| Aug 11, 2026 | 2,293 | 1,412 |
| Aug 12, 2026 | 2,101 | 1,440 |
| Aug 13, 2026 | 2,184 | 1,466 |
| Aug 14, 2026 | 2,263 | 1,490 |
| Aug 15, 2026 | 2,336 | 1,510 |
| Aug 16, 2026 | 2,404 | 1,526 |
| Aug 17, 2026 | 2,466 | 1,540 |
| Aug 18, 2026 | 2,522 | 1,549 |
| Aug 19, 2026 | 2,291 | 1,555 |
| Aug 20, 2026 | 2,335 | 1,557 |
| Aug 21, 2026 | 2,374 | 1,556 |
| Aug 22, 2026 | 2,407 | 1,552 |
| Aug 23, 2026 | 2,437 | 1,546 |
| Aug 24, 2026 | 2,463 | 1,538 |
| Aug 25, 2026 | 2,486 | 1,528 |
| Aug 26, 2026 | 2,228 | 1,517 |
| Aug 27, 2026 | 2,249 | 1,506 |
| Aug 28, 2026 | 2,271 | 1,495 |
| Aug 29, 2026 | 2,295 | 1,485 |
Installation
pnpm add @heyramzi/uiUsage
import { TimeSeriesChart } from "@heyramzi/ui/charts";<TimeSeriesChart
data={[{ date: "2026-07-01", value: 1200, value2: 900 }]}
label="This period"
label2="Previous"
height={280}
/>Keyboard and accessibility
| Key | Does |
|---|---|
| Tab | Moves focus to the plot. |
| Arrow Right Arrow Down | Shows the next point's tooltip. |
| Arrow Left Arrow Up | Shows the previous point's tooltip. |
| Home End | Shows the first or last point. |
| Esc | Hides the tooltip. |
- The plot is named by ariaLabel, or by label without one. A summary follows the name: the date range, then each line's first, last, low and high value.
- The keys read out the day they land on and show the same tooltip as hover.
- A hidden table lists every day for a screen reader to browse.
API reference
datarequiredDataPoint[]labelstring- Default
"Value" label2stringcolorstring- Default
"var(--chart-series-1)" color2string- Default
"var(--chart-series-2)" formatValue(v: number) => string- Default
(v) => v.toLocaleString() formatValue2(v: number) => stringheightnumber- Default
280 softMaxboolean- Default
false - Clamp Y-axis to 95th percentile so outlier spikes don't flatten normal data
yMinnumber- Default
0 - Y-axis floor. Raise above 0 to frame variation around a baseline.
edgeFadeboolean | number- Default
true - Softens the left and right ends of the filled area instead of cutting them off at the plot edge.
ariaLabelstring- Default
label - The chart's accessible name. Its date range and values are read after it.
| Prop | Type | Default |
|---|---|---|
data required | DataPoint[] | |
label | string | "Value" |
label2 | string | |
color | string | "var(--chart-series-1)" |
color2 | string | "var(--chart-series-2)" |
formatValue | (v: number) => string | (v) => v.toLocaleString() |
formatValue2 | (v: number) => string | |
height | number | 280 |
softMax Clamp Y-axis to 95th percentile so outlier spikes don't flatten normal data | boolean | false |
yMin Y-axis floor. Raise above 0 to frame variation around a baseline. | number | 0 |
edgeFade Softens the left and right ends of the filled area instead of cutting them off at the plot edge. | boolean | number | true |
ariaLabel The chart's accessible name. Its date range and values are read after it. | string | label |