LineChart
Line chart, 6 points. Week 1 to Week 6. Values from 10 to 86.
Show data table
| Period | Assessed |
|---|---|
| Week 1 | 10 |
| Week 2 | 25 |
| Week 3 | 40 |
| Week 4 | 60 |
| Week 5 | 72 |
| Week 6 | 86 |
import { LineChart } from '@eekodigital/raster';
<LineChart
series={[{ name: 'Assessed', data: [10, 25, 40, 60, 72, 86] }]}
categories={['Week 1', 'Week 2', 'Week 3', 'Week 4', 'Week 5', 'Week 6']}
title="Assessment progress over time"
/>Multi-series
Section titled “Multi-series”Pass multiple series to compare trends. A legend renders automatically.
Line chart, 3 series, 18 points. Jan to Jun. Values from 0 to 42.
Show data table
| Period | Pass | Fail | N/A |
|---|---|---|---|
| Jan | 0 | 0 | 0 |
| Feb | 5 | 1 | 2 |
| Mar | 12 | 3 | 4 |
| Apr | 20 | 5 | 7 |
| May | 30 | 6 | 10 |
| Jun | 42 | 8 | 12 |
<LineChart
series={[
{ name: 'Pass', data: [0, 5, 12, 20, 30, 42], color: 'var(--demo-good)' },
{ name: 'Fail', data: [0, 1, 3, 5, 6, 8], color: 'var(--demo-bad)' },
{ name: 'N/A', data: [0, 2, 4, 7, 10, 12], color: 'var(--demo-neutral)' },
]}
categories={['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']}
title="Results trend by status"
/>Area fill
Section titled “Area fill”Set area to fill below the line.
Line chart, 6 points. Week 1 to Week 6. Values from 10 to 86.
Show data table
| Period | Assessed |
|---|---|
| Week 1 | 10 |
| Week 2 | 25 |
| Week 3 | 40 |
| Week 4 | 60 |
| Week 5 | 72 |
| Week 6 | 86 |
<LineChart
series={[{ name: 'Assessed', data: [10, 25, 40, 60, 72, 86] }]}
categories={['Week 1', 'Week 2', 'Week 3', 'Week 4', 'Week 5', 'Week 6']}
area
title="Assessment progress (area)"
/>Selection
Section titled “Selection”Pass onSelect (and optionally selectedIndex) to make points toggle buttons. Enter or Space toggles the focused point; Escape clears the selection.
Line chart, 2 series, 12 points. Jan to Jun. Values from 0 to 42.
Show data table
| Period | Pass | Fail |
|---|---|---|
| Jan | 0 | 0 |
| Feb | 5 | 1 |
| Mar | 12 | 3 |
| Apr | 20 | 5 |
| May | 30 | 6 |
| Jun | 42 | 8 |
Nothing selected
const [selected, setSelected] = useState<LinePointIndex | null>(null);
<LineChart
series={series}
categories={months}
title="Results trend (select a point)"
selectedIndex={selected}
onSelect={setSelected}
/>Axis labels
Section titled “Axis labels”Keep categories complete: they name each point and label the table rows. To thin or shorten the x-axis, use xTickFilter and formatXTick, which only affect the ticks:
<LineChart series={[{ name: "Visitors", data: visits }]} categories={days} // "2026-09-01" … "2026-09-30" xTickFilter={(i) => i % 7 === 0} formatXTick={(day) => day.slice(5)} // "09-01" title="Visitors in September"/>Only the first and last categories anchor to the plot edges; every other tick centres on its point.
categories are evenly spaced, which is right for steps like weeks of a course or survey waves. For dates, pass xAxis={timeAxis(dates)} instead. Points are then spaced by elapsed time, so irregular dates are drawn at their real distance apart. The data below is missing 9–11 September:
Line chart, 67 points. 1 September 2026 to 9 November 2026. Values from 101 to 252.
Show data table
| Date | Views |
|---|---|
| 1 September 2026 | 120 |
| 2 September 2026 | 135 |
| 3 September 2026 | 148 |
| 4 September 2026 | 158 |
| 5 September 2026 | 165 |
| 6 September 2026 | 167 |
| 7 September 2026 | 165 |
| 8 September 2026 | 159 |
| 12 September 2026 | 150 |
| 13 September 2026 | 139 |
| 14 September 2026 | 127 |
| 15 September 2026 | 116 |
| 16 September 2026 | 108 |
| 17 September 2026 | 102 |
| 18 September 2026 | 101 |
| 19 September 2026 | 104 |
| 20 September 2026 | 111 |
| 21 September 2026 | 122 |
| 22 September 2026 | 136 |
| 23 September 2026 | 151 |
| 24 September 2026 | 165 |
| 25 September 2026 | 178 |
| 26 September 2026 | 188 |
| 27 September 2026 | 194 |
| 28 September 2026 | 196 |
| 29 September 2026 | 193 |
| 30 September 2026 | 187 |
| 1 October 2026 | 177 |
| 2 October 2026 | 166 |
| 3 October 2026 | 154 |
| 4 October 2026 | 143 |
| 5 October 2026 | 135 |
| 6 October 2026 | 130 |
| 7 October 2026 | 130 |
| 8 October 2026 | 133 |
| 9 October 2026 | 141 |
| 10 October 2026 | 153 |
| 11 October 2026 | 166 |
| 12 October 2026 | 181 |
| 13 October 2026 | 195 |
| 14 October 2026 | 208 |
| 15 October 2026 | 217 |
| 16 October 2026 | 223 |
| 17 October 2026 | 224 |
| 18 October 2026 | 221 |
| 19 October 2026 | 214 |
| 20 October 2026 | 204 |
| 21 October 2026 | 192 |
| 22 October 2026 | 180 |
| 23 October 2026 | 170 |
| 24 October 2026 | 162 |
| 25 October 2026 | 158 |
| 26 October 2026 | 158 |
| 27 October 2026 | 162 |
| 28 October 2026 | 171 |
| 29 October 2026 | 183 |
| 30 October 2026 | 197 |
| 31 October 2026 | 211 |
| 1 November 2026 | 226 |
| 2 November 2026 | 238 |
| 3 November 2026 | 247 |
| 4 November 2026 | 251 |
| 5 November 2026 | 252 |
| 6 November 2026 | 248 |
| 7 November 2026 | 240 |
| 8 November 2026 | 230 |
| 9 November 2026 | 219 |
import { LineChart } from '@eekodigital/raster';
import { timeAxis } from '@eekodigital/raster/time';
<LineChart
series={[{ name: 'Views', data: views }]}
xAxis={timeAxis(days, { interval: 'day' })}
labels={{ locale: 'en-GB' }}
title="Daily views"
/>timeAxis lives at @eekodigital/raster/time (about 1 KB), so charts with categories don’t carry date code.
- Values are
Dates, ISO strings or epoch milliseconds, in ascending order, one per data point. Date-only strings like"2026-10-03"are UTC midnight. - Ticks fall on calendar boundaries: days for short ranges, Mondays for medium ones, then months, quarters and years, chosen to fit the width. Month ticks name the year on January and on the first tick.
- Gaps:
interval("day","week","month","quarter"or"year") is the data’s cadence. Where a point is more than one interval after the previous one, the line and area break. Without it, the line joins every point. - Time zone: ticks and names use UTC unless you pass
timeZone, e.g."Europe/London". Server and client render the same thing, because the zone is named rather than taken from the machine. - Names: points, the summary and the data table use the long date in
labels.locale: “Views, 3 October 2026: 42, 3 of 12” inen-GB, “October 3, 2026” inen. The default locale isen(US order), so setlabels={{ locale: "en-GB" }}(or your users’ locale) for day-first dates. Points that aren’t at midnight add the time. Passformat(Intl.DateTimeFormatOptionsor a function) to change it. The table’s first column is headedlabels.dateColumn(“Date”).
xTickFilter and formatXTick work on date ticks too: they get each tick’s index and text (“3 Oct”), so you can thin or reword them. xLabelMinSpacing sets the minimum px between date ticks, which timeAxis otherwise estimates from the width of the locale’s labels.
For large series, create the axis with useMemo so its formatting and gap checks aren’t repeated on every render: const x = useMemo(() => timeAxis(days, { interval: "day" }), [days]).
Reference lines
Section titled “Reference lines”referenceLines draws dashed, labelled lines for targets, thresholds and goals. The value scale stretches to include each line.
Line chart, 6 points. Week 1 to Week 6. Values from 10 to 86. Target: 80.
Show data table
| Period | Assessed |
|---|---|
| Week 1 | 10 |
| Week 2 | 25 |
| Week 3 | 40 |
| Week 4 | 60 |
| Week 5 | 72 |
| Week 6 | 86 |
<LineChart
series={[{ name: 'Assessed', data: [10, 25, 40, 60, 72, 86] }]}
categories={['Week 1', 'Week 2', 'Week 3', 'Week 4', 'Week 5', 'Week 6']}
referenceLines={[{ value: 80, label: 'Target' }]}
title="Assessment progress against target"
/>- Vertical lines: with a date axis,
{ value: "2026-10-05", label: "Launch", axis: "x" }draws a vertical line at that date. A date outside the data’s range is left out. Categories have no in-between values, so they don’t take x lines. - Accessibility: the line isn’t focusable, and its SVG label is hidden from assistive technology. The same text is at the end of the summary (“… Target: 80.”) and in the table caption (“Data for …, with a reference line (Target: 80)”). Reword both with
labels.referenceLineandlabels.referenceNote. - Styling: the colour is
--raster-reference, falling back to--raster-text-subtle. The line keeps its dash in forced-colours mode, so it stays distinct from series lines.
Large series
Section titled “Large series”Above 200 points in a series, LineChart switches to dense mode. Each series is drawn as one path, downsampled to the first, lowest, highest and last point in each pixel column (which looks the same), with no per-point marks. At 1,000 points that takes the server HTML from about 310 KB to about 62 KB, and the SVG from 261 KB to 13 KB.
Line chart, 2 series, 1,460 points. 1 January 2025 to 31 December 2026. Values from 165 to 610.
Show data table
| Date | Views | Visitors |
|---|---|---|
| 1 January 2025 | 411 | 185 |
| 2 January 2025 | 407 | 183 |
| 3 January 2025 | 417 | 184 |
| 4 January 2025 | 379 | 165 |
| 5 January 2025 | 381 | 172 |
| 6 January 2025 | 422 | 188 |
| 7 January 2025 | 423 | 192 |
| 8 January 2025 | 417 | 190 |
| 9 January 2025 | 426 | 194 |
| 10 January 2025 | 426 | 197 |
| 11 January 2025 | 397 | 175 |
| 12 January 2025 | 391 | 178 |
| 13 January 2025 | 430 | 195 |
| 14 January 2025 | 426 | 198 |
| 15 January 2025 | 436 | 200 |
| 16 January 2025 | 435 | 203 |
| 17 January 2025 | 444 | 203 |
| 18 January 2025 | 393 | 184 |
| 19 January 2025 | 396 | 180 |
| 20 January 2025 | 446 | 200 |
| 21 January 2025 | 449 | 202 |
| 22 January 2025 | 442 | 208 |
| 23 January 2025 | 443 | 202 |
| 24 January 2025 | 449 | 204 |
| 25 January 2025 | 406 | 191 |
| 26 January 2025 | 405 | 186 |
| 27 January 2025 | 463 | 205 |
| 28 January 2025 | 461 | 207 |
| 29 January 2025 | 457 | 211 |
| 30 January 2025 | 462 | 210 |
| 31 January 2025 | 465 | 210 |
| 1 February 2025 | 431 | 190 |
| 2 February 2025 | 430 | 196 |
| 3 February 2025 | 465 | 215 |
| 4 February 2025 | 477 | 213 |
| 5 February 2025 | 473 | 216 |
| 6 February 2025 | 475 | 220 |
| 7 February 2025 | 475 | 216 |
| 8 February 2025 | 424 | 202 |
| 9 February 2025 | 424 | 195 |
| 10 February 2025 | 484 | 218 |
| 11 February 2025 | 485 | 226 |
| 12 February 2025 | 493 | 223 |
| 13 February 2025 | 482 | 225 |
| 14 February 2025 | 479 | 222 |
| 15 February 2025 | 447 | 203 |
| 16 February 2025 | 442 | 204 |
| 17 February 2025 | 499 | 227 |
| 18 February 2025 | 494 | 224 |
| 19 February 2025 | 497 | 228 |
| 20 February 2025 | 488 | 226 |
| 21 February 2025 | 503 | 227 |
| 22 February 2025 | 450 | 203 |
| 23 February 2025 | 443 | 211 |
| 24 February 2025 | 491 | 230 |
| 25 February 2025 | 498 | 230 |
| 26 February 2025 | 497 | 231 |
| 27 February 2025 | 507 | 229 |
| 28 February 2025 | 514 | 235 |
| 1 March 2025 | 450 | 215 |
| 2 March 2025 | 464 | 213 |
| 3 March 2025 | 510 | 238 |
| 4 March 2025 | 503 | 232 |
| 5 March 2025 | 518 | 236 |
| 6 March 2025 | 510 | 241 |
| 7 March 2025 | 510 | 238 |
| 8 March 2025 | 470 | 214 |
| 9 March 2025 | 456 | 218 |
| 10 March 2025 | 515 | 241 |
| 11 March 2025 | 516 | 241 |
| 12 March 2025 | 513 | 242 |
| 13 March 2025 | 509 | 245 |
| 14 March 2025 | 524 | 244 |
| 15 March 2025 | 465 | 222 |
| 16 March 2025 | 464 | 220 |
| 17 March 2025 | 511 | 239 |
| 18 March 2025 | 520 | 241 |
| 19 March 2025 | 525 | 240 |
| 20 March 2025 | 522 | 243 |
| 21 March 2025 | 528 | 248 |
| 22 March 2025 | 477 | 217 |
| 23 March 2025 | 477 | 219 |
| 24 March 2025 | 531 | 249 |
| 25 March 2025 | 521 | 244 |
| 26 March 2025 | 532 | 243 |
| 27 March 2025 | 536 | 250 |
| 28 March 2025 | 521 | 249 |
| 29 March 2025 | 475 | 224 |
| 30 March 2025 | 486 | 219 |
| 31 March 2025 | 527 | 249 |
| 1 April 2025 | 534 | 246 |
| 2 April 2025 | 525 | 251 |
| 3 April 2025 | 538 | 249 |
| 4 April 2025 | 538 | 250 |
| 5 April 2025 | 475 | 227 |
| 6 April 2025 | 478 | 227 |
| 7 April 2025 | 520 | 245 |
| 8 April 2025 | 532 | 253 |
| 9 April 2025 | 536 | 247 |
| 10 April 2025 | 529 | 247 |
| 11 April 2025 | 521 | 247 |
| 12 April 2025 | 477 | 228 |
| 13 April 2025 | 485 | 224 |
| 14 April 2025 | 538 | 249 |
| 15 April 2025 | 533 | 248 |
| 16 April 2025 | 527 | 249 |
| 17 April 2025 | 527 | 249 |
| 18 April 2025 | 529 | 249 |
| 19 April 2025 | 480 | 224 |
| 20 April 2025 | 470 | 227 |
| 21 April 2025 | 536 | 253 |
| 22 April 2025 | 532 | 253 |
| 23 April 2025 | 531 | 253 |
| 24 April 2025 | 526 | 249 |
| 25 April 2025 | 521 | 247 |
| 26 April 2025 | 481 | 227 |
| 27 April 2025 | 472 | 220 |
| 28 April 2025 | 520 | 251 |
| 29 April 2025 | 528 | 247 |
| 30 April 2025 | 529 | 249 |
| 1 May 2025 | 515 | 252 |
| 2 May 2025 | 527 | 249 |
| 3 May 2025 | 471 | 223 |
| 4 May 2025 | 465 | 222 |
| 5 May 2025 | 513 | 247 |
| 6 May 2025 | 520 | 246 |
| 7 May 2025 | 510 | 243 |
| 8 May 2025 | 510 | 249 |
| 9 May 2025 | 518 | 245 |
| 10 May 2025 | 473 | 218 |
| 11 May 2025 | 469 | 222 |
| 12 May 2025 | 512 | 248 |
| 13 May 2025 | 508 | 241 |
| 14 May 2025 | 509 | 242 |
| 15 May 2025 | 505 | 243 |
| 16 May 2025 | 503 | 241 |
| 17 May 2025 | 456 | 222 |
| 18 May 2025 | 465 | 216 |
| 19 May 2025 | 512 | 243 |
| 20 May 2025 | 498 | 244 |
| 21 May 2025 | 510 | 242 |
| 22 May 2025 | 507 | 245 |
| 23 May 2025 | 497 | 246 |
| 24 May 2025 | 452 | 214 |
| 25 May 2025 | 451 | 221 |
| 26 May 2025 | 507 | 237 |
| 27 May 2025 | 499 | 239 |
| 28 May 2025 | 496 | 243 |
| 29 May 2025 | 495 | 237 |
| 30 May 2025 | 492 | 235 |
| 31 May 2025 | 446 | 218 |
| 1 June 2025 | 452 | 218 |
| 2 June 2025 | 499 | 240 |
| 3 June 2025 | 488 | 237 |
| 4 June 2025 | 493 | 233 |
| 5 June 2025 | 483 | 233 |
| 6 June 2025 | 478 | 239 |
| 7 June 2025 | 431 | 209 |
| 8 June 2025 | 438 | 211 |
| 9 June 2025 | 475 | 238 |
| 10 June 2025 | 486 | 233 |
| 11 June 2025 | 487 | 234 |
| 12 June 2025 | 468 | 231 |
| 13 June 2025 | 475 | 232 |
| 14 June 2025 | 429 | 209 |
| 15 June 2025 | 426 | 205 |
| 16 June 2025 | 465 | 232 |
| 17 June 2025 | 478 | 230 |
| 18 June 2025 | 476 | 228 |
| 19 June 2025 | 473 | 232 |
| 20 June 2025 | 465 | 232 |
| 21 June 2025 | 418 | 206 |
| 22 June 2025 | 419 | 206 |
| 23 June 2025 | 466 | 229 |
| 24 June 2025 | 462 | 225 |
| 25 June 2025 | 462 | 223 |
| 26 June 2025 | 460 | 225 |
| 27 June 2025 | 453 | 228 |
| 28 June 2025 | 405 | 199 |
| 29 June 2025 | 417 | 204 |
| 30 June 2025 | 458 | 226 |
| 1 July 2025 | 452 | 219 |
| 2 July 2025 | 446 | 225 |
| 3 July 2025 | 453 | 218 |
| 4 July 2025 | 448 | 218 |
| 5 July 2025 | 390 | 202 |
| 6 July 2025 | 404 | 201 |
| 7 July 2025 | 444 | 220 |
| 8 July 2025 | 436 | 220 |
| 9 July 2025 | 440 | 220 |
| 10 July 2025 | 434 | 215 |
| 11 July 2025 | 443 | 215 |
| 12 July 2025 | 389 | 197 |
| 13 July 2025 | 394 | 193 |
| 14 July 2025 | 434 | 217 |
| 15 July 2025 | 433 | 210 |
| 16 July 2025 | 429 | 210 |
| 17 July 2025 | 428 | 212 |
| 18 July 2025 | 416 | 212 |
| 19 July 2025 | 379 | 190 |
| 20 July 2025 | 388 | 193 |
| 21 July 2025 | 416 | 213 |
| 22 July 2025 | 410 | 210 |
| 23 July 2025 | 416 | 207 |
| 24 July 2025 | 416 | 205 |
| 25 July 2025 | 416 | 209 |
| 26 July 2025 | 363 | 191 |
| 27 July 2025 | 373 | 183 |
| 28 July 2025 | 409 | 209 |
| 29 July 2025 | 415 | 211 |
| 30 July 2025 | 416 | 210 |
| 31 July 2025 | 398 | 205 |
| 1 August 2025 | 396 | 207 |
| 2 August 2025 | 368 | 180 |
| 3 August 2025 | 370 | 184 |
| 4 August 2025 | 404 | 205 |
| 5 August 2025 | 399 | 203 |
| 6 August 2025 | 395 | 203 |
| 7 August 2025 | 405 | 201 |
| 8 August 2025 | 385 | 198 |
| 9 August 2025 | 358 | 180 |
| 10 August 2025 | 352 | 179 |
| 11 August 2025 | 398 | 204 |
| 12 August 2025 | 396 | 197 |
| 13 August 2025 | 387 | 200 |
| 14 August 2025 | 384 | 196 |
| 15 August 2025 | 394 | 201 |
| 16 August 2025 | 355 | 176 |
| 17 August 2025 | 347 | 181 |
| 18 August 2025 | 383 | 194 |
| 19 August 2025 | 392 | 196 |
| 20 August 2025 | 386 | 198 |
| 21 August 2025 | 371 | 193 |
| 22 August 2025 | 371 | 196 |
| 23 August 2025 | 335 | 176 |
| 24 August 2025 | 343 | 178 |
| 25 August 2025 | 381 | 197 |
| 26 August 2025 | 378 | 194 |
| 27 August 2025 | 384 | 192 |
| 28 August 2025 | 369 | 191 |
| 29 August 2025 | 372 | 194 |
| 30 August 2025 | 331 | 173 |
| 31 August 2025 | 345 | 174 |
| 1 September 2025 | 365 | 195 |
| 2 September 2025 | 381 | 193 |
| 3 September 2025 | 374 | 192 |
| 4 September 2025 | 369 | 196 |
| 5 September 2025 | 375 | 198 |
| 6 September 2025 | 325 | 173 |
| 7 September 2025 | 335 | 178 |
| 8 September 2025 | 371 | 190 |
| 9 September 2025 | 375 | 192 |
| 10 September 2025 | 358 | 192 |
| 11 September 2025 | 375 | 196 |
| 12 September 2025 | 360 | 195 |
| 13 September 2025 | 336 | 174 |
| 14 September 2025 | 322 | 172 |
| 15 September 2025 | 357 | 191 |
| 16 September 2025 | 365 | 197 |
| 17 September 2025 | 373 | 196 |
| 18 September 2025 | 371 | 192 |
| 19 September 2025 | 361 | 192 |
| 20 September 2025 | 327 | 176 |
| 21 September 2025 | 336 | 175 |
| 22 September 2025 | 368 | 190 |
| 23 September 2025 | 372 | 195 |
| 24 September 2025 | 363 | 192 |
| 25 September 2025 | 358 | 197 |
| 26 September 2025 | 371 | 194 |
| 27 September 2025 | 323 | 172 |
| 28 September 2025 | 335 | 175 |
| 29 September 2025 | 356 | 193 |
| 30 September 2025 | 372 | 193 |
| 1 October 2025 | 372 | 199 |
| 2 October 2025 | 355 | 191 |
| 3 October 2025 | 372 | 196 |
| 4 October 2025 | 340 | 172 |
| 5 October 2025 | 335 | 178 |
| 6 October 2025 | 363 | 195 |
| 7 October 2025 | 363 | 199 |
| 8 October 2025 | 366 | 196 |
| 9 October 2025 | 359 | 198 |
| 10 October 2025 | 369 | 199 |
| 11 October 2025 | 335 | 180 |
| 12 October 2025 | 323 | 178 |
| 13 October 2025 | 370 | 195 |
| 14 October 2025 | 365 | 195 |
| 15 October 2025 | 364 | 197 |
| 16 October 2025 | 371 | 196 |
| 17 October 2025 | 373 | 201 |
| 18 October 2025 | 327 | 176 |
| 19 October 2025 | 328 | 184 |
| 20 October 2025 | 380 | 197 |
| 21 October 2025 | 383 | 204 |
| 22 October 2025 | 368 | 204 |
| 23 October 2025 | 378 | 206 |
| 24 October 2025 | 370 | 200 |
| 25 October 2025 | 343 | 184 |
| 26 October 2025 | 334 | 180 |
| 27 October 2025 | 375 | 206 |
| 28 October 2025 | 388 | 204 |
| 29 October 2025 | 374 | 204 |
| 30 October 2025 | 372 | 201 |
| 31 October 2025 | 380 | 202 |
| 1 November 2025 | 338 | 184 |
| 2 November 2025 | 340 | 184 |
| 3 November 2025 | 384 | 209 |
| 4 November 2025 | 394 | 205 |
| 5 November 2025 | 387 | 210 |
| 6 November 2025 | 391 | 207 |
| 7 November 2025 | 397 | 207 |
| 8 November 2025 | 353 | 188 |
| 9 November 2025 | 356 | 187 |
| 10 November 2025 | 387 | 212 |
| 11 November 2025 | 399 | 213 |
| 12 November 2025 | 396 | 217 |
| 13 November 2025 | 400 | 214 |
| 14 November 2025 | 392 | 215 |
| 15 November 2025 | 367 | 191 |
| 16 November 2025 | 361 | 195 |
| 17 November 2025 | 405 | 219 |
| 18 November 2025 | 409 | 219 |
| 19 November 2025 | 398 | 221 |
| 20 November 2025 | 399 | 217 |
| 21 November 2025 | 416 | 223 |
| 22 November 2025 | 373 | 196 |
| 23 November 2025 | 371 | 198 |
| 24 November 2025 | 412 | 223 |
| 25 November 2025 | 414 | 223 |
| 26 November 2025 | 419 | 224 |
| 27 November 2025 | 418 | 228 |
| 28 November 2025 | 425 | 223 |
| 29 November 2025 | 379 | 201 |
| 30 November 2025 | 387 | 209 |
| 1 December 2025 | 427 | 225 |
| 2 December 2025 | 419 | 229 |
| 3 December 2025 | 436 | 230 |
| 4 December 2025 | 423 | 228 |
| 5 December 2025 | 433 | 232 |
| 6 December 2025 | 401 | 209 |
| 7 December 2025 | 402 | 214 |
| 8 December 2025 | 429 | 232 |
| 9 December 2025 | 431 | 240 |
| 10 December 2025 | 443 | 233 |
| 11 December 2025 | 440 | 238 |
| 12 December 2025 | 450 | 240 |
| 13 December 2025 | 395 | 217 |
| 14 December 2025 | 405 | 213 |
| 15 December 2025 | 457 | 238 |
| 16 December 2025 | 460 | 241 |
| 17 December 2025 | 455 | 246 |
| 18 December 2025 | 462 | 248 |
| 19 December 2025 | 464 | 245 |
| 20 December 2025 | 410 | 224 |
| 21 December 2025 | 409 | 221 |
| 22 December 2025 | 456 | 246 |
| 23 December 2025 | 459 | 251 |
| 24 December 2025 | 466 | 249 |
| 25 December 2025 | 466 | 254 |
| 26 December 2025 | 466 | 253 |
| 27 December 2025 | 432 | 224 |
| 28 December 2025 | 426 | 228 |
| 29 December 2025 | 467 | 259 |
| 30 December 2025 | 489 | 256 |
| 31 December 2025 | 486 | 253 |
| 1 January 2026 | 487 | 259 |
| 2 January 2026 | 487 | 259 |
| 3 January 2026 | 435 | 233 |
| 4 January 2026 | 436 | 237 |
| 5 January 2026 | 489 | 264 |
| 6 January 2026 | 501 | 259 |
| 7 January 2026 | 487 | 265 |
| 8 January 2026 | 490 | 264 |
| 9 January 2026 | 492 | 267 |
| 10 January 2026 | 443 | 242 |
| 11 January 2026 | 452 | 242 |
| 12 January 2026 | 500 | 268 |
| 13 January 2026 | 498 | 268 |
| 14 January 2026 | 508 | 273 |
| 15 January 2026 | 517 | 274 |
| 16 January 2026 | 511 | 269 |
| 17 January 2026 | 461 | 244 |
| 18 January 2026 | 456 | 246 |
| 19 January 2026 | 511 | 279 |
| 20 January 2026 | 511 | 272 |
| 21 January 2026 | 520 | 274 |
| 22 January 2026 | 518 | 276 |
| 23 January 2026 | 534 | 277 |
| 24 January 2026 | 479 | 255 |
| 25 January 2026 | 480 | 251 |
| 26 January 2026 | 525 | 278 |
| 27 January 2026 | 539 | 283 |
| 28 January 2026 | 539 | 279 |
| 29 January 2026 | 528 | 286 |
| 30 January 2026 | 545 | 281 |
| 31 January 2026 | 490 | 253 |
| 1 February 2026 | 489 | 258 |
| 2 February 2026 | 534 | 287 |
| 3 February 2026 | 542 | 288 |
| 4 February 2026 | 546 | 293 |
| 5 February 2026 | 545 | 288 |
| 6 February 2026 | 549 | 287 |
| 7 February 2026 | 495 | 259 |
| 8 February 2026 | 494 | 266 |
| 9 February 2026 | 554 | 293 |
| 10 February 2026 | 564 | 292 |
| 11 February 2026 | 565 | 291 |
| 12 February 2026 | 558 | 297 |
| 13 February 2026 | 566 | 295 |
| 14 February 2026 | 510 | 268 |
| 15 February 2026 | 508 | 270 |
| 16 February 2026 | 566 | 296 |
| 17 February 2026 | 568 | 302 |
| 18 February 2026 | 563 | 297 |
| 19 February 2026 | 564 | 300 |
| 20 February 2026 | 562 | 306 |
| 21 February 2026 | 523 | 270 |
| 22 February 2026 | 509 | 277 |
| 23 February 2026 | 569 | 300 |
| 24 February 2026 | 577 | 304 |
| 25 February 2026 | 579 | 309 |
| 26 February 2026 | 574 | 305 |
| 27 February 2026 | 576 | 311 |
| 28 February 2026 | 528 | 277 |
| 1 March 2026 | 516 | 276 |
| 2 March 2026 | 589 | 312 |
| 3 March 2026 | 577 | 308 |
| 4 March 2026 | 587 | 307 |
| 5 March 2026 | 594 | 308 |
| 6 March 2026 | 580 | 307 |
| 7 March 2026 | 530 | 285 |
| 8 March 2026 | 521 | 283 |
| 9 March 2026 | 589 | 316 |
| 10 March 2026 | 595 | 314 |
| 11 March 2026 | 596 | 314 |
| 12 March 2026 | 598 | 312 |
| 13 March 2026 | 598 | 312 |
| 14 March 2026 | 527 | 287 |
| 15 March 2026 | 534 | 284 |
| 16 March 2026 | 587 | 311 |
| 17 March 2026 | 604 | 317 |
| 18 March 2026 | 594 | 316 |
| 19 March 2026 | 596 | 312 |
| 20 March 2026 | 596 | 316 |
| 21 March 2026 | 540 | 288 |
| 22 March 2026 | 533 | 289 |
| 23 March 2026 | 602 | 317 |
| 24 March 2026 | 591 | 319 |
| 25 March 2026 | 606 | 318 |
| 26 March 2026 | 596 | 321 |
| 27 March 2026 | 592 | 317 |
| 28 March 2026 | 531 | 285 |
| 29 March 2026 | 547 | 286 |
| 30 March 2026 | 601 | 320 |
| 31 March 2026 | 608 | 320 |
| 1 April 2026 | 610 | 318 |
| 2 April 2026 | 602 | 323 |
| 3 April 2026 | 598 | 324 |
| 4 April 2026 | 532 | 288 |
| 5 April 2026 | 533 | 286 |
| 6 April 2026 | 602 | 325 |
| 7 April 2026 | 599 | 323 |
| 8 April 2026 | 598 | 322 |
| 9 April 2026 | 597 | 320 |
| 10 April 2026 | 593 | 322 |
| 11 April 2026 | 538 | 290 |
| 12 April 2026 | 534 | 294 |
| 13 April 2026 | 607 | 318 |
| 14 April 2026 | 606 | 319 |
| 15 April 2026 | 596 | 318 |
| 16 April 2026 | 596 | 325 |
| 17 April 2026 | 593 | 325 |
| 18 April 2026 | 547 | 294 |
| 19 April 2026 | 544 | 288 |
| 20 April 2026 | 601 | 323 |
| 21 April 2026 | 598 | 322 |
| 22 April 2026 | 598 | 323 |
| 23 April 2026 | 595 | 319 |
| 24 April 2026 | 599 | 326 |
| 25 April 2026 | 536 | 294 |
| 26 April 2026 | 533 | 289 |
| 27 April 2026 | 589 | 321 |
| 28 April 2026 | 604 | 319 |
| 29 April 2026 | 605 | 326 |
| 30 April 2026 | 593 | 322 |
| 1 May 2026 | 591 | 322 |
| 2 May 2026 | 529 | 289 |
| 3 May 2026 | 532 | 287 |
| 4 May 2026 | 599 | 321 |
| 5 May 2026 | 598 | 324 |
| 6 May 2026 | 599 | 324 |
| 7 May 2026 | 588 | 316 |
| 8 May 2026 | 587 | 322 |
| 9 May 2026 | 522 | 286 |
| 10 May 2026 | 538 | 289 |
| 11 May 2026 | 594 | 316 |
| 12 May 2026 | 590 | 320 |
| 13 May 2026 | 581 | 322 |
| 14 May 2026 | 579 | 314 |
| 15 May 2026 | 585 | 317 |
| 16 May 2026 | 532 | 288 |
| 17 May 2026 | 519 | 282 |
| 18 May 2026 | 578 | 317 |
| 19 May 2026 | 590 | 315 |
| 20 May 2026 | 587 | 316 |
| 21 May 2026 | 579 | 313 |
| 22 May 2026 | 577 | 313 |
| 23 May 2026 | 522 | 279 |
| 24 May 2026 | 523 | 287 |
| 25 May 2026 | 578 | 315 |
| 26 May 2026 | 581 | 315 |
| 27 May 2026 | 562 | 313 |
| 28 May 2026 | 566 | 312 |
| 29 May 2026 | 570 | 312 |
| 30 May 2026 | 502 | 282 |
| 31 May 2026 | 513 | 278 |
| 1 June 2026 | 559 | 309 |
| 2 June 2026 | 572 | 307 |
| 3 June 2026 | 552 | 313 |
| 4 June 2026 | 565 | 311 |
| 5 June 2026 | 550 | 306 |
| 6 June 2026 | 498 | 276 |
| 7 June 2026 | 495 | 279 |
| 8 June 2026 | 550 | 311 |
| 9 June 2026 | 549 | 306 |
| 10 June 2026 | 551 | 307 |
| 11 June 2026 | 559 | 310 |
| 12 June 2026 | 554 | 309 |
| 13 June 2026 | 490 | 271 |
| 14 June 2026 | 503 | 279 |
| 15 June 2026 | 555 | 303 |
| 16 June 2026 | 547 | 300 |
| 17 June 2026 | 537 | 298 |
| 18 June 2026 | 532 | 305 |
| 19 June 2026 | 542 | 305 |
| 20 June 2026 | 491 | 271 |
| 21 June 2026 | 489 | 269 |
| 22 June 2026 | 539 | 302 |
| 23 June 2026 | 539 | 298 |
| 24 June 2026 | 525 | 300 |
| 25 June 2026 | 536 | 299 |
| 26 June 2026 | 527 | 296 |
| 27 June 2026 | 468 | 271 |
| 28 June 2026 | 474 | 269 |
| 29 June 2026 | 534 | 300 |
| 30 June 2026 | 517 | 295 |
| 1 July 2026 | 525 | 293 |
| 2 July 2026 | 516 | 291 |
| 3 July 2026 | 520 | 295 |
| 4 July 2026 | 472 | 263 |
| 5 July 2026 | 458 | 262 |
| 6 July 2026 | 509 | 296 |
| 7 July 2026 | 521 | 295 |
| 8 July 2026 | 501 | 294 |
| 9 July 2026 | 501 | 291 |
| 10 July 2026 | 505 | 292 |
| 11 July 2026 | 450 | 260 |
| 12 July 2026 | 457 | 256 |
| 13 July 2026 | 501 | 291 |
| 14 July 2026 | 500 | 289 |
| 15 July 2026 | 492 | 283 |
| 16 July 2026 | 490 | 289 |
| 17 July 2026 | 494 | 284 |
| 18 July 2026 | 450 | 258 |
| 19 July 2026 | 440 | 255 |
| 20 July 2026 | 491 | 286 |
| 21 July 2026 | 499 | 285 |
| 22 July 2026 | 486 | 281 |
| 23 July 2026 | 485 | 283 |
| 24 July 2026 | 496 | 282 |
| 25 July 2026 | 433 | 252 |
| 26 July 2026 | 430 | 256 |
| 27 July 2026 | 476 | 277 |
| 28 July 2026 | 480 | 279 |
| 29 July 2026 | 472 | 280 |
| 30 July 2026 | 483 | 283 |
| 31 July 2026 | 475 | 280 |
| 1 August 2026 | 433 | 247 |
| 2 August 2026 | 431 | 248 |
| 3 August 2026 | 474 | 279 |
| 4 August 2026 | 479 | 275 |
| 5 August 2026 | 474 | 276 |
| 6 August 2026 | 478 | 275 |
| 7 August 2026 | 463 | 273 |
| 8 August 2026 | 425 | 252 |
| 9 August 2026 | 414 | 244 |
| 10 August 2026 | 468 | 273 |
| 11 August 2026 | 474 | 272 |
| 12 August 2026 | 470 | 277 |
| 13 August 2026 | 466 | 273 |
| 14 August 2026 | 466 | 271 |
| 15 August 2026 | 423 | 243 |
| 16 August 2026 | 418 | 249 |
| 17 August 2026 | 462 | 273 |
| 18 August 2026 | 452 | 270 |
| 19 August 2026 | 455 | 271 |
| 20 August 2026 | 455 | 267 |
| 21 August 2026 | 456 | 266 |
| 22 August 2026 | 413 | 239 |
| 23 August 2026 | 399 | 245 |
| 24 August 2026 | 450 | 268 |
| 25 August 2026 | 443 | 272 |
| 26 August 2026 | 448 | 265 |
| 27 August 2026 | 442 | 268 |
| 28 August 2026 | 446 | 270 |
| 29 August 2026 | 397 | 244 |
| 30 August 2026 | 410 | 244 |
| 31 August 2026 | 441 | 266 |
| 1 September 2026 | 444 | 265 |
| 2 September 2026 | 452 | 264 |
| 3 September 2026 | 444 | 271 |
| 4 September 2026 | 439 | 267 |
| 5 September 2026 | 407 | 240 |
| 6 September 2026 | 393 | 241 |
| 7 September 2026 | 452 | 269 |
| 8 September 2026 | 448 | 266 |
| 9 September 2026 | 439 | 267 |
| 10 September 2026 | 446 | 262 |
| 11 September 2026 | 448 | 270 |
| 12 September 2026 | 395 | 239 |
| 13 September 2026 | 400 | 237 |
| 14 September 2026 | 435 | 263 |
| 15 September 2026 | 437 | 266 |
| 16 September 2026 | 433 | 261 |
| 17 September 2026 | 440 | 265 |
| 18 September 2026 | 429 | 268 |
| 19 September 2026 | 398 | 238 |
| 20 September 2026 | 402 | 241 |
| 21 September 2026 | 431 | 267 |
| 22 September 2026 | 429 | 263 |
| 23 September 2026 | 440 | 267 |
| 24 September 2026 | 436 | 264 |
| 25 September 2026 | 437 | 265 |
| 26 September 2026 | 396 | 242 |
| 27 September 2026 | 391 | 242 |
| 28 September 2026 | 435 | 264 |
| 29 September 2026 | 436 | 265 |
| 30 September 2026 | 439 | 269 |
| 1 October 2026 | 428 | 264 |
| 2 October 2026 | 440 | 265 |
| 3 October 2026 | 386 | 244 |
| 4 October 2026 | 387 | 242 |
| 5 October 2026 | 432 | 268 |
| 6 October 2026 | 438 | 269 |
| 7 October 2026 | 444 | 273 |
| 8 October 2026 | 443 | 265 |
| 9 October 2026 | 437 | 270 |
| 10 October 2026 | 407 | 243 |
| 11 October 2026 | 407 | 240 |
| 12 October 2026 | 432 | 268 |
| 13 October 2026 | 436 | 273 |
| 14 October 2026 | 438 | 272 |
| 15 October 2026 | 446 | 269 |
| 16 October 2026 | 446 | 273 |
| 17 October 2026 | 410 | 246 |
| 18 October 2026 | 400 | 241 |
| 19 October 2026 | 452 | 269 |
| 20 October 2026 | 456 | 269 |
| 21 October 2026 | 454 | 276 |
| 22 October 2026 | 439 | 274 |
| 23 October 2026 | 457 | 273 |
| 24 October 2026 | 405 | 249 |
| 25 October 2026 | 411 | 250 |
| 26 October 2026 | 459 | 276 |
| 27 October 2026 | 459 | 280 |
| 28 October 2026 | 456 | 279 |
| 29 October 2026 | 448 | 278 |
| 30 October 2026 | 446 | 275 |
| 31 October 2026 | 412 | 249 |
| 1 November 2026 | 418 | 256 |
| 2 November 2026 | 450 | 282 |
| 3 November 2026 | 468 | 282 |
| 4 November 2026 | 466 | 278 |
| 5 November 2026 | 456 | 279 |
| 6 November 2026 | 470 | 286 |
| 7 November 2026 | 424 | 258 |
| 8 November 2026 | 411 | 257 |
| 9 November 2026 | 463 | 283 |
| 10 November 2026 | 464 | 287 |
| 11 November 2026 | 466 | 286 |
| 12 November 2026 | 463 | 284 |
| 13 November 2026 | 473 | 286 |
| 14 November 2026 | 429 | 260 |
| 15 November 2026 | 421 | 262 |
| 16 November 2026 | 484 | 289 |
| 17 November 2026 | 482 | 290 |
| 18 November 2026 | 470 | 294 |
| 19 November 2026 | 481 | 289 |
| 20 November 2026 | 482 | 293 |
| 21 November 2026 | 436 | 267 |
| 22 November 2026 | 428 | 261 |
| 23 November 2026 | 489 | 292 |
| 24 November 2026 | 486 | 298 |
| 25 November 2026 | 489 | 293 |
| 26 November 2026 | 496 | 298 |
| 27 November 2026 | 500 | 297 |
| 28 November 2026 | 439 | 269 |
| 29 November 2026 | 456 | 271 |
| 30 November 2026 | 501 | 302 |
| 1 December 2026 | 497 | 304 |
| 2 December 2026 | 493 | 298 |
| 3 December 2026 | 505 | 301 |
| 4 December 2026 | 505 | 307 |
| 5 December 2026 | 457 | 271 |
| 6 December 2026 | 466 | 275 |
| 7 December 2026 | 510 | 309 |
| 8 December 2026 | 516 | 304 |
| 9 December 2026 | 517 | 310 |
| 10 December 2026 | 522 | 311 |
| 11 December 2026 | 521 | 308 |
| 12 December 2026 | 477 | 277 |
| 13 December 2026 | 477 | 283 |
| 14 December 2026 | 516 | 310 |
| 15 December 2026 | 518 | 311 |
| 16 December 2026 | 516 | 312 |
| 17 December 2026 | 530 | 314 |
| 18 December 2026 | 531 | 320 |
| 19 December 2026 | 474 | 283 |
| 20 December 2026 | 490 | 291 |
| 21 December 2026 | 536 | 318 |
| 22 December 2026 | 536 | 322 |
| 23 December 2026 | 548 | 322 |
| 24 December 2026 | 549 | 325 |
| 25 December 2026 | 534 | 326 |
| 26 December 2026 | 493 | 294 |
| 27 December 2026 | 493 | 297 |
| 28 December 2026 | 543 | 325 |
| 29 December 2026 | 546 | 325 |
| 30 December 2026 | 557 | 328 |
| 31 December 2026 | 557 | 334 |
Nothing selected
<LineChart
series={[
{ name: 'Views', data: views }, // 730 days
{ name: 'Visitors', data: visitors },
]}
xAxis={timeAxis(days, { interval: 'day' })}
title="Daily traffic, 2025–2026"
selectedIndex={selected}
onSelect={setSelected}
/>- One control. The chart has a single focusable slider (a visually hidden
<input type="range">). Its name is the series, andaria-valuetextnames the current point, e.g. “Views, 3 October 2025: 512, 276 of 730”. Screen readers announce each change, NVDA switches into focus mode so the arrow keys reach the chart, and VoiceOver on iOS can swipe through the points. - Same keys as other charts: ← / → point, Home / End, PageUp / PageDown 10 points, ↑ / ↓ series, Enter / Space select (“, selected” is added to the value), Escape clear.
- Marker: the current point shows a marker with the focus ring while the slider has focus. Pointing anywhere over the plot moves it to the nearest point and shows the tooltip; clicking selects that point.
- Still in the HTML: the summary and the data table, so every value is available without JavaScript.
curve="smooth"is drawn straight in dense mode, because curves can’t be seen at that density and cost about three times the bytes.dense={false}keeps per-point marks,denseforces dense mode, anddense={500}changes the threshold.
Accessibility
Section titled “Accessibility”- A
role="figure"named by the visibletitleand described by a generated summary (chart type, series and point counts, range). - The SVG is a
role="group"witharia-roledescription="chart"; nographics-*roles. - Each series is a
role="group"named{series}, {n} points. - Each point is labelled
{series}, {x}: {y}, 3 of 12. WithonSelect,selectedIndexor a click handler, marks arerole="button"witharia-pressed; otherwise they’re staticrole="img". - Points use a different marker shape per series (circle, square, triangle…) as well as colour.
- A visible Show data table disclosure (a native
<details>/<summary>, so it opens without JavaScript) reveals a real table captionedData for {title}, withth scopeheaders and values run throughformatValue. - Escape (inside the chart only) clears the selection and announces it in a polite live region; it doesn’t close a surrounding dialog.
- Animations stop under
prefers-reduced-motion. In forced-colours mode marks use system colours, told apart by dash pattern and marker shape.
| Key | Action |
|---|---|
| ← / → | Previous / next mark |
| Home / End | First / last mark |
| PageUp / PageDown | Back / forward 10 marks |
| ↑ / ↓ | Previous / next series |
| Tab | Leave the chart (one tab stop) |
| Enter / Space | Toggle selection (interactive marks) |
| Escape | Hide the tooltip and clear selection |
See the Accessibility guide for the shared structure, the labels prop and screen-reader testing.
| Prop | Type | Description |
|---|---|---|
series | LineSeries[] | Required. |
categories | string[] | Required unless |
xAxis | XAxis | A date axis instead of |
referenceLines | ReferenceLine[] |
|
dense | boolean | numberDefault: | Dense mode: one path per series and a single slider instead of per-point marks. A number is
the threshold (points in the longest series); |
area | booleanDefault: | Fill below the line. |
stacked | booleanDefault: | Stack series. |
curve | “linear” | “smooth”Default: | Line interpolation. |
xLabel | string | X-axis title. |
yLabel | string | Y-axis title. |
grid | “horizontal” | “vertical” | “both” | “none”Default: | Grid lines. |
formatValue | (value: number) => stringDefault: | Formats values in ticks, marks and the table. Defaults to |
xLabelMinSpacing | number | Minimum px between x ticks. Labels already thin out so they don’t touch (by their estimated width), keeping the first and last categories; set this to space them further apart. |
xTickFilter | (index: number, category: string) => boolean | Which x ticks to label, given each tick’s index and text. With categories it replaces the automatic thinning; with a date axis it filters the calendar ticks. Points and the table keep every value. |
formatXTick | (category: string, index: number) => string | Text for an x tick, given its text and index (a category, or a date tick’s label). Return
|
height | numberDefault: | Plot height in px. |
aspectRatio | number | Width ÷ height, instead of |
onMarkClick | (mark: { index: LinePointIndex, value }) => void | Called when a mark is clicked (or activated with Enter/Space) with
|
selectedIndex | { series, point } | null | Controlled selection. |
onSelect | (index | null) => void | Makes points buttons; called on toggle and Escape. |
title | string | Required. Visible title: names the figure and captions the data table. |
hideTitle | booleanDefault: | Hide the title visually. It still names the chart for assistive technology. |
labels | ChartLabelOverridesDefault: English | Generated strings and the number locale. See Accessibility. |
dataTable | “disclosure” | “visually-hidden” | “none”Default: | How the data table is offered: behind a Show data table button, for screen readers only, or not at all, when you offer the data yourself. See Accessibility. |
actions | ReactNode | Shown on the same row as the Show data table button, such as download buttons. |
ref | Ref<HTMLDivElement> | The chart’s root element, e.g. for |
className | string | Class on the figure. |