Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

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.

This period
DateThis periodPrevious
Jul 1, 20261,200900
Jul 2, 20261,294933
Jul 3, 20261,388965
Jul 4, 20261,479996
Jul 5, 20261,5681,025
Jul 6, 20261,6531,052
Jul 7, 20261,7331,076
Jul 8, 20261,5281,097
Jul 9, 20261,5981,115
Jul 10, 20261,6611,129
Jul 11, 20261,7191,139
Jul 12, 20261,7701,146
Jul 13, 20261,8161,150
Jul 14, 20261,8561,150
Jul 15, 20261,6111,147
Jul 16, 20261,6421,141
Jul 17, 20261,6691,133
Jul 18, 20261,6931,124
Jul 19, 20261,7151,113
Jul 20, 20261,7361,102
Jul 21, 20261,7581,091
Jul 22, 20261,5011,080
Jul 23, 20261,5261,071
Jul 24, 20261,5541,064
Jul 25, 20261,5861,059
Jul 26, 20261,6221,057
Jul 27, 20261,6641,058
Jul 28, 20261,7111,063
Jul 29, 20261,4841,071
Jul 30, 20261,5441,082
Jul 31, 20261,6091,097
Aug 1, 20261,6801,116
Aug 2, 20261,7571,138
Aug 3, 20261,8391,163
Aug 4, 20261,9251,191
Aug 5, 20261,7341,221
Aug 6, 20261,8271,252
Aug 7, 20261,9201,284
Aug 8, 20262,0151,317
Aug 9, 20262,1091,350
Aug 10, 20262,2021,381
Aug 11, 20262,2931,412
Aug 12, 20262,1011,440
Aug 13, 20262,1841,466
Aug 14, 20262,2631,490
Aug 15, 20262,3361,510
Aug 16, 20262,4041,526
Aug 17, 20262,4661,540
Aug 18, 20262,5221,549
Aug 19, 20262,2911,555
Aug 20, 20262,3351,557
Aug 21, 20262,3741,556
Aug 22, 20262,4071,552
Aug 23, 20262,4371,546
Aug 24, 20262,4631,538
Aug 25, 20262,4861,528
Aug 26, 20262,2281,517
Aug 27, 20262,2491,506
Aug 28, 20262,2711,495
Aug 29, 20262,2951,485

Installation

pnpm add @heyramzi/ui

Usage

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

data required DataPoint[]
label string
Default "Value"
label2 string
color string
Default "var(--chart-series-1)"
color2 string
Default "var(--chart-series-2)"
formatValue (v: number) => string
Default (v) => v.toLocaleString()
formatValue2 (v: number) => string
height number
Default 280
softMax boolean
Default false
Clamp Y-axis to 95th percentile so outlier spikes don't flatten normal data
yMin number
Default 0
Y-axis floor. Raise above 0 to frame variation around a baseline.
edgeFade boolean | number
Default true
Softens the left and right ends of the filled area instead of cutting them off at the plot edge.
ariaLabel string
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