Line Chart
A smooth area or line chart for trends over time. It is drawn as SVG by the component itself — no chart library — renders on the server, and takes every colour from the design tokens, so themes and dark mode just work.
Part of @tectra-ng/charts (npm install @tectra-ng/charts, also included in tectra-ng).
Basic
Pass series ({ name, data }) and categories. Hover the chart — a rule marks the nearest value and the tooltip sits above it — or focus it and use the arrow keys; click a legend item to hide a series.
| Category | Visits | Sign-ups |
|---|---|---|
| Jan | 4,200 | 820 |
| Feb | 4,800 | 900 |
| Mar | 5,100 | 1,150 |
| Apr | 4,700 | 980 |
| May | 5,900 | 1,320 |
| Jun | 6,400 | 1,480 |
| Jul | 7,100 | 1,610 |
| Aug | 6,800 | 1,540 |
| Sep | 7,600 | 1,720 |
| Oct | 8,200 | 1,900 |
| Nov | 7,900 | 1,810 |
| Dec | 8,800 | 2,050 |
Legend variants
legendVariant picks the look of the legend: line (the default of a line chart — a short stroke in the series colour), dot, pill (tinted chips, the easiest to hit on touch) or stat — a card per series with the value under the pointer, or the last one, in large type. A hidden series keeps a hollow or dashed marker.
| Category | Revenue | Costs | Profit |
|---|---|---|---|
| Jan | 42 | 31 | 11 |
| Feb | 47 | 33 | 14 |
| Mar | 45 | 36 | 9 |
| Apr | 53 | 35 | 18 |
| May | 58 | 39 | 19 |
| Jun | 61 | 40 | 21 |
| Jul | 66 | 42 | 24 |
| Aug | 72 | 44 | 28 |
Line only
[area]="false" draws plain lines; markers puts a dot on every value (dots are left out when the points are too dense to tell apart).
| Category | p50, ms | p95, ms |
|---|---|---|
| Mon | 182 | 412 |
| Tue | 176 | 398 |
| Wed | 190 | 455 |
| Thu | 201 | 470 |
| Fri | 188 | 430 |
| Sat | 160 | 360 |
| Sun | 158 | 352 |
Curves
curve sets how the points are joined: smooth (monotone — it never overshoots the data), straight or step.
| Category | Active users |
|---|---|
| 00:00 | 120 |
| 03:00 | 64 |
| 06:00 | 90 |
| 09:00 | 410 |
| 12:00 | 520 |
| 15:00 | 480 |
| 18:00 | 610 |
| 21:00 | 330 |
Stacked
stacked piles the areas on top of each other; stackType="100%" shows each series as a share of the total at every point.
| Category | Starter | Team | Enterprise |
|---|---|---|---|
| Q1 2025 | 12 | 20 | 8 |
| Q2 2025 | 14 | 24 | 9 |
| Q3 2025 | 15 | 29 | 13 |
| Q4 2025 | 15 | 33 | 18 |
| Q1 2026 | 17 | 38 | 22 |
| Q2 2026 | 18 | 44 | 30 |
Time axis
With xType="time" the x values are dates (ISO strings, Date or timestamps) and the spacing follows the calendar: a missing week leaves a real gap. Ticks pick days, months or years by the range and are formatted in the kit's locale.
| Category | Orders |
|---|---|
| Mar 2, 2026 | 140 |
| Mar 3, 2026 | 152 |
| Mar 5, 2026 | 171 |
| Mar 9, 2026 | 168 |
| Mar 10, 2026 | 190 |
| Mar 24, 2026 | 260 |
| Mar 25, 2026 | 244 |
| Mar 27, 2026 | 231 |
| Apr 6, 2026 | 205 |
| Apr 8, 2026 | 222 |
Gaps
A null value leaves a gap in the line and the area instead of dropping to zero — for days without a measurement.
| Category | Server room, °C |
|---|---|
| 1 | 21 |
| 2 | 22 |
| 3 | 22 |
| 4 | — |
| 5 | — |
| 6 | 23 |
| 7 | 24 |
| 8 | 24 |
| 9 | 22 |
| 10 | — |
| 11 | 21 |
| 12 | 22 |
| 13 | 22 |
| 14 | 23 |
Scales and formats
valueFormat formats the value axis and the tooltip through the kit's locale: number, integer, compact (1.2K, 3.4M), percent or your own function. yScale="log" spreads values that differ by orders of magnitude.
| Category | Library | Plugins |
|---|---|---|
| 2019 | 1.2K | 300 |
| 2020 | 5.4K | 900 |
| 2021 | 31K | 4.2K |
| 2022 | 160K | 18K |
| 2023 | 720K | 64K |
| 2024 | 2.1M | 230K |
| 2025 | 4.8M | 610K |
| 2026 | 9.1M | 1.5M |
Axes
xAxisTitle and yAxisTitle name the axes, yAxisPosition and xAxisPosition move the axes to the right or the top, grid draws value, category, both or none grid lines, yMin / yMax fix the value range. Labels that do not fit are skipped or turned (labelMode).
| Category | Delivery time |
|---|---|
| Amsterdam | 26 |
| Barcelona | 38 |
| Copenhagen | 31 |
| Dublin | 44 |
| Edinburgh | 40 |
| Florence | 35 |
| Geneva | 29 |
| Helsinki | 48 |
Annotations
annotations mark events on the plot: x-line and x-band for moments and periods, y-line and y-band for targets and ranges, point for a single value — each with a label pill and a tone or color. Bands sit behind the series, lines and points on top.
| Category | Sign-ups |
|---|---|
| W1 | 320 |
| W2 | 340 |
| W3 | 330 |
| W4 | 410 |
| W5 | 520 |
| W6 | 480 |
| W7 | 470 |
| W8 | 460 |
| W9 | 610 |
| W10 | 640 |
| W11 | 590 |
| W12 | 700 |
Zoom
zoom lets you look closer along the x axis: Ctrl (⌘) and the wheel or a pinch zoom at the pointer, a drag or a sideways swipe moves, a double click or "Reset zoom" resets; on the keyboard + / − zoom, Shift + arrows move and 0 resets. xRange is two-way.
| Category | Visits |
|---|---|
| Jul 1, 2026 | 1,290 |
| Jul 2, 2026 | 1,339 |
| Jul 3, 2026 | 1,371 |
| Jul 4, 2026 | 1,389 |
| Jul 5, 2026 | 1,395 |
| Jul 6, 2026 | 1,398 |
| Jul 7, 2026 | 1,401 |
| Jul 8, 2026 | 1,409 |
| Jul 9, 2026 | 1,423 |
| Jul 10, 2026 | 1,443 |
| Jul 11, 2026 | 1,464 |
| Jul 12, 2026 | 1,483 |
| Jul 13, 2026 | 1,491 |
| Jul 14, 2026 | 1,485 |
| Jul 15, 2026 | 1,459 |
| Jul 16, 2026 | 1,414 |
| Jul 17, 2026 | 1,351 |
| Jul 18, 2026 | 1,276 |
| Jul 19, 2026 | 1,195 |
| Jul 20, 2026 | 1,119 |
| Jul 21, 2026 | 1,056 |
| Jul 22, 2026 | 1,013 |
| Jul 23, 2026 | 995 |
| Jul 24, 2026 | 1,004 |
| Jul 25, 2026 | 1,037 |
| Jul 26, 2026 | 1,089 |
| Jul 27, 2026 | 1,154 |
| Jul 28, 2026 | 1,222 |
| Jul 29, 2026 | 1,287 |
| Jul 30, 2026 | 1,343 |
| Jul 31, 2026 | 1,387 |
| Aug 1, 2026 | 1,419 |
| Aug 2, 2026 | 1,442 |
| Aug 3, 2026 | 1,460 |
| Aug 4, 2026 | 1,478 |
| Aug 5, 2026 | 1,501 |
| Aug 6, 2026 | 1,532 |
| Aug 7, 2026 | 1,572 |
| Aug 8, 2026 | 1,618 |
| Aug 9, 2026 | 1,665 |
| Aug 10, 2026 | 1,707 |
| Aug 11, 2026 | 1,737 |
| Aug 12, 2026 | 1,749 |
| Aug 13, 2026 | 1,738 |
| Aug 14, 2026 | 1,703 |
| Aug 15, 2026 | 1,645 |
| Aug 16, 2026 | 1,571 |
| Aug 17, 2026 | 1,487 |
| Aug 18, 2026 | 1,404 |
| Aug 19, 2026 | 1,329 |
| Aug 20, 2026 | 1,271 |
| Aug 21, 2026 | 1,236 |
| Aug 22, 2026 | 1,223 |
| Aug 23, 2026 | 1,233 |
| Aug 24, 2026 | 1,261 |
| Aug 25, 2026 | 1,301 |
| Aug 26, 2026 | 1,345 |
| Aug 27, 2026 | 1,388 |
| Aug 28, 2026 | 1,424 |
| Aug 29, 2026 | 1,452 |
| Aug 30, 2026 | 1,473 |
| Aug 31, 2026 | 1,489 |
| Sep 1, 2026 | 1,506 |
| Sep 2, 2026 | 1,530 |
| Sep 3, 2026 | 1,563 |
| Sep 4, 2026 | 1,609 |
| Sep 5, 2026 | 1,668 |
| Sep 6, 2026 | 1,736 |
| Sep 7, 2026 | 1,807 |
| Sep 8, 2026 | 1,873 |
| Sep 9, 2026 | 1,928 |
| Sep 10, 2026 | 1,962 |
| Sep 11, 2026 | 1,973 |
| Sep 12, 2026 | 1,956 |
| Sep 13, 2026 | 1,914 |
| Sep 14, 2026 | 1,852 |
| Sep 15, 2026 | 1,777 |
| Sep 16, 2026 | 1,698 |
| Sep 17, 2026 | 1,624 |
| Sep 18, 2026 | 1,562 |
| Sep 19, 2026 | 1,517 |
| Sep 20, 2026 | 1,492 |
| Sep 21, 2026 | 1,485 |
| Sep 22, 2026 | 1,492 |
| Sep 23, 2026 | 1,508 |
| Sep 24, 2026 | 1,526 |
| Sep 25, 2026 | 1,543 |
| Sep 26, 2026 | 1,553 |
| Sep 27, 2026 | 1,557 |
| Sep 28, 2026 | 1,557 |
| Sep 29, 2026 | 1,557 |
| Sep 30, 2026 | 1,563 |
| Oct 1, 2026 | 1,579 |
| Oct 2, 2026 | 1,611 |
| Oct 3, 2026 | 1,661 |
| Oct 4, 2026 | 1,728 |
| Oct 5, 2026 | 1,809 |
| Oct 6, 2026 | 1,897 |
| Oct 7, 2026 | 1,983 |
| Oct 8, 2026 | 2,059 |
| Oct 9, 2026 | 2,116 |
| Oct 10, 2026 | 2,149 |
| Oct 11, 2026 | 2,156 |
| Oct 12, 2026 | 2,136 |
| Oct 13, 2026 | 2,095 |
| Oct 14, 2026 | 2,039 |
| Oct 15, 2026 | 1,975 |
| Oct 16, 2026 | 1,913 |
| Oct 17, 2026 | 1,858 |
| Oct 18, 2026 | 1,817 |
| Oct 19, 2026 | 1,789 |
| Oct 20, 2026 | 1,774 |
| Oct 21, 2026 | 1,769 |
| Oct 22, 2026 | 1,767 |
| Oct 23, 2026 | 1,765 |
| Oct 24, 2026 | 1,757 |
| Oct 25, 2026 | 1,742 |
| Oct 26, 2026 | 1,719 |
| Oct 27, 2026 | 1,694 |
| Oct 28, 2026 | 1,670 |
Whole range
Brush
brush draws the whole series under the chart with the visible window: drag the window to move it, its edges to resize it, or click elsewhere to jump there. The chart above shows only the window.
| Category | Visits |
|---|---|
| May 1, 2026 | 1,290 |
| May 2, 2026 | 1,339 |
| May 3, 2026 | 1,371 |
| May 4, 2026 | 1,389 |
| May 5, 2026 | 1,395 |
| May 6, 2026 | 1,398 |
| May 7, 2026 | 1,401 |
| May 8, 2026 | 1,409 |
| May 9, 2026 | 1,423 |
| May 10, 2026 | 1,443 |
| May 11, 2026 | 1,464 |
| May 12, 2026 | 1,483 |
| May 13, 2026 | 1,491 |
| May 14, 2026 | 1,485 |
| May 15, 2026 | 1,459 |
| May 16, 2026 | 1,414 |
| May 17, 2026 | 1,351 |
| May 18, 2026 | 1,276 |
| May 19, 2026 | 1,195 |
| May 20, 2026 | 1,119 |
| May 21, 2026 | 1,056 |
| May 22, 2026 | 1,013 |
| May 23, 2026 | 995 |
| May 24, 2026 | 1,004 |
| May 25, 2026 | 1,037 |
| May 26, 2026 | 1,089 |
| May 27, 2026 | 1,154 |
| May 28, 2026 | 1,222 |
| May 29, 2026 | 1,287 |
| May 30, 2026 | 1,343 |
| May 31, 2026 | 1,387 |
| Jun 1, 2026 | 1,419 |
| Jun 2, 2026 | 1,442 |
| Jun 3, 2026 | 1,460 |
| Jun 4, 2026 | 1,478 |
| Jun 5, 2026 | 1,501 |
| Jun 6, 2026 | 1,532 |
| Jun 7, 2026 | 1,572 |
| Jun 8, 2026 | 1,618 |
| Jun 9, 2026 | 1,665 |
| Jun 10, 2026 | 1,707 |
| Jun 11, 2026 | 1,737 |
| Jun 12, 2026 | 1,749 |
| Jun 13, 2026 | 1,738 |
| Jun 14, 2026 | 1,703 |
| Jun 15, 2026 | 1,645 |
| Jun 16, 2026 | 1,571 |
| Jun 17, 2026 | 1,487 |
| Jun 18, 2026 | 1,404 |
| Jun 19, 2026 | 1,329 |
| Jun 20, 2026 | 1,271 |
| Jun 21, 2026 | 1,236 |
| Jun 22, 2026 | 1,223 |
| Jun 23, 2026 | 1,233 |
| Jun 24, 2026 | 1,261 |
| Jun 25, 2026 | 1,301 |
| Jun 26, 2026 | 1,345 |
| Jun 27, 2026 | 1,388 |
| Jun 28, 2026 | 1,424 |
| Jun 29, 2026 | 1,452 |
| Jun 30, 2026 | 1,473 |
| Jul 1, 2026 | 1,489 |
| Jul 2, 2026 | 1,506 |
| Jul 3, 2026 | 1,530 |
| Jul 4, 2026 | 1,563 |
| Jul 5, 2026 | 1,609 |
| Jul 6, 2026 | 1,668 |
| Jul 7, 2026 | 1,736 |
| Jul 8, 2026 | 1,807 |
| Jul 9, 2026 | 1,873 |
| Jul 10, 2026 | 1,928 |
| Jul 11, 2026 | 1,962 |
| Jul 12, 2026 | 1,973 |
| Jul 13, 2026 | 1,956 |
| Jul 14, 2026 | 1,914 |
| Jul 15, 2026 | 1,852 |
| Jul 16, 2026 | 1,777 |
| Jul 17, 2026 | 1,698 |
| Jul 18, 2026 | 1,624 |
| Jul 19, 2026 | 1,562 |
| Jul 20, 2026 | 1,517 |
| Jul 21, 2026 | 1,492 |
| Jul 22, 2026 | 1,485 |
| Jul 23, 2026 | 1,492 |
| Jul 24, 2026 | 1,508 |
| Jul 25, 2026 | 1,526 |
| Jul 26, 2026 | 1,543 |
| Jul 27, 2026 | 1,553 |
| Jul 28, 2026 | 1,557 |
| Jul 29, 2026 | 1,557 |
| Jul 30, 2026 | 1,557 |
| Jul 31, 2026 | 1,563 |
| Aug 1, 2026 | 1,579 |
| Aug 2, 2026 | 1,611 |
| Aug 3, 2026 | 1,661 |
| Aug 4, 2026 | 1,728 |
| Aug 5, 2026 | 1,809 |
| Aug 6, 2026 | 1,897 |
| Aug 7, 2026 | 1,983 |
| Aug 8, 2026 | 2,059 |
| Aug 9, 2026 | 2,116 |
| Aug 10, 2026 | 2,149 |
| Aug 11, 2026 | 2,156 |
| Aug 12, 2026 | 2,136 |
| Aug 13, 2026 | 2,095 |
| Aug 14, 2026 | 2,039 |
| Aug 15, 2026 | 1,975 |
| Aug 16, 2026 | 1,913 |
| Aug 17, 2026 | 1,858 |
| Aug 18, 2026 | 1,817 |
| Aug 19, 2026 | 1,789 |
| Aug 20, 2026 | 1,774 |
| Aug 21, 2026 | 1,769 |
| Aug 22, 2026 | 1,767 |
| Aug 23, 2026 | 1,765 |
| Aug 24, 2026 | 1,757 |
| Aug 25, 2026 | 1,742 |
| Aug 26, 2026 | 1,719 |
| Aug 27, 2026 | 1,694 |
| Aug 28, 2026 | 1,670 |
| Aug 29, 2026 | 1,655 |
| Aug 30, 2026 | 1,654 |
| Aug 31, 2026 | 1,674 |
| Sep 1, 2026 | 1,716 |
| Sep 2, 2026 | 1,780 |
| Sep 3, 2026 | 1,863 |
| Sep 4, 2026 | 1,956 |
| Sep 5, 2026 | 2,052 |
| Sep 6, 2026 | 2,141 |
| Sep 7, 2026 | 2,215 |
| Sep 8, 2026 | 2,268 |
| Sep 9, 2026 | 2,296 |
| Sep 10, 2026 | 2,300 |
| Sep 11, 2026 | 2,283 |
| Sep 12, 2026 | 2,250 |
| Sep 13, 2026 | 2,210 |
| Sep 14, 2026 | 2,168 |
| Sep 15, 2026 | 2,132 |
| Sep 16, 2026 | 2,105 |
| Sep 17, 2026 | 2,087 |
| Sep 18, 2026 | 2,076 |
| Sep 19, 2026 | 2,069 |
| Sep 20, 2026 | 2,061 |
| Sep 21, 2026 | 2,046 |
| Sep 22, 2026 | 2,021 |
| Sep 23, 2026 | 1,985 |
| Sep 24, 2026 | 1,940 |
| Sep 25, 2026 | 1,890 |
| Sep 26, 2026 | 1,841 |
| Sep 27, 2026 | 1,801 |
| Sep 28, 2026 | 1,778 |
| Sep 29, 2026 | 1,777 |
| Sep 30, 2026 | 1,802 |
| Oct 1, 2026 | 1,852 |
| Oct 2, 2026 | 1,924 |
| Oct 3, 2026 | 2,011 |
| Oct 4, 2026 | 2,105 |
| Oct 5, 2026 | 2,197 |
| Oct 6, 2026 | 2,278 |
| Oct 7, 2026 | 2,341 |
| Oct 8, 2026 | 2,384 |
| Oct 9, 2026 | 2,407 |
| Oct 10, 2026 | 2,411 |
| Oct 11, 2026 | 2,402 |
| Oct 12, 2026 | 2,387 |
| Oct 13, 2026 | 2,372 |
| Oct 14, 2026 | 2,360 |
| Oct 15, 2026 | 2,356 |
| Oct 16, 2026 | 2,357 |
| Oct 17, 2026 | 2,362 |
| Oct 18, 2026 | 2,365 |
| Oct 19, 2026 | 2,362 |
| Oct 20, 2026 | 2,346 |
| Oct 21, 2026 | 2,315 |
| Oct 22, 2026 | 2,269 |
| Oct 23, 2026 | 2,208 |
| Oct 24, 2026 | 2,139 |
| Oct 25, 2026 | 2,069 |
| Oct 26, 2026 | 2,007 |
| Oct 27, 2026 | 1,960 |
Live stream
maxPoints keeps a sliding window of the last values and live slides the line to the left when a value arrives instead of morphing it. Press Play to stream a value every second.
| Category | Requests |
|---|---|
| 10s | 111 |
| 11s | 117 |
| 12s | 98 |
| 13s | 80 |
| 14s | 93 |
| 15s | 102 |
| 16s | 90 |
| 17s | 93 |
| 18s | 120 |
| 19s | 129 |
| 20s | 121 |
| 21s | 135 |
| 22s | 157 |
| 23s | 152 |
| 24s | 138 |
| 25s | 148 |
| 26s | 152 |
| 27s | 128 |
| 28s | 112 |
| 29s | 120 |
| 30s | 113 |
| 31s | 87 |
| 32s | 85 |
| 33s | 101 |
| 34s | 95 |
| 35s | 85 |
| 36s | 103 |
| 37s | 125 |
| 38s | 121 |
| 39s | 121 |
Legend
legendPosition puts the legend on any side, legendAlign aligns a top or bottom legend. A legend item toggles its series (the colours stay put) and the arrow keys move between items. A single series has no legend.
| Category | Web | Mobile | Platform | Data |
|---|---|---|---|---|
| W1 | 310 | 220 | 150 | 90 |
| W2 | 280 | 260 | 170 | 110 |
| W3 | 350 | 240 | 160 | 130 |
| W4 | 400 | 300 | 190 | 120 |
| W5 | 380 | 310 | 230 | 140 |
| W6 | 420 | 290 | 210 | 160 |
| W7 | 460 | 330 | 240 | 150 |
| W8 | 440 | 360 | 250 | 180 |
Legend template
<ng-template txChartLegend let-item> draws each legend item yourself; the item still toggles its series. The context has label, color and hidden.
| Category | Income | Spending |
|---|---|---|
| Jan | 5,200 | 4,100 |
| Feb | 5,400 | 4,600 |
| Mar | 5,100 | 4,300 |
| Apr | 6,100 | 4,800 |
| May | 6,400 | 5,200 |
| Jun | 6,900 | 5,000 |
Tooltip
The tooltip opens on the kit overlay, so it never gets clipped by a card. tooltipMode="single" shows only the series nearest to the pointer, tooltipFormatter formats each value, and <ng-template txChartTooltip let-data> replaces the whole content. It follows the keyboard focus too.
| Category | Web | App |
|---|---|---|
| Jan | 42 | 36 |
| Feb | 44 | 39 |
| Mar | 41 | 43 |
| Apr | 47 | 45 |
| May | 52 | 44 |
| Jun | 55 | 49 |
| Jul | 58 | 53 |
| Category | Web | App |
|---|---|---|
| Jan | 42 | 36 |
| Feb | 44 | 39 |
| Mar | 41 | 43 |
| Apr | 47 | 45 |
| May | 52 | 44 |
| Jun | 55 | 49 |
| Jul | 58 | 53 |
Download
The chart menu in the top right corner downloads the chart as SVG or PNG and its data as CSV; the files are named after ariaLabel. toolbar (on by default, also on column and pie charts) hides it.
| Category | Orders | Returns |
|---|---|---|
| W1 | 320 | 24 |
| W2 | 410 | 31 |
| W3 | 380 | 28 |
| W4 | 460 | 30 |
| W5 | 520 | 36 |
| W6 | 490 | 33 |
| W7 | 580 | 40 |
| W8 | 640 | 38 |
Loading and empty
loading shows a skeleton of the same size, and a chart without values shows "No data" — the page does not move when the data arrives.
Live
New series or categories redraw the chart in place: lines and areas morph to the new values instead of being rebuilt.
| Category | Requests |
|---|---|
| -9m | 820 |
| -8m | 900 |
| -7m | 870 |
| -6m | 960 |
| -5m | 1,010 |
| -4m | 980 |
| -3m | 1,120 |
| -2m | 1,080 |
| -1m | 1,150 |
| now | 1,210 |
Large data
Long series are thinned with the largest-triangle method before drawing, so 20 000 points stay fast while peaks keep their shape; the tooltip and the keyboard still read every original value. Turn it off with [decimation]="false". The hidden data table for screen readers keeps an even sample of 250 rows.
| Category | Reading |
|---|---|
| #1 | 50 |
| #81 | 146 |
| #162 | 176 |
| #242 | 157 |
| #322 | 222 |
| #403 | 192 |
| #483 | 130 |
| #563 | 148 |
| #644 | 67 |
| #724 | -6 |
| #804 | 6 |
| #884 | -70 |
| #965 | -100 |
| #1045 | -47 |
| #1125 | -80 |
| #1206 | -45 |
| #1286 | 43 |
| #1366 | 31 |
| #1447 | 90 |
| #1527 | 158 |
| #1607 | 116 |
| #1688 | 145 |
| #1768 | 152 |
| #1848 | 59 |
| #1929 | 54 |
| #2009 | 16 |
| #2089 | -88 |
| #2170 | -80 |
| #2250 | -108 |
| #2330 | -166 |
| #2411 | -102 |
| #2491 | -92 |
| #2571 | -95 |
| #2651 | 8 |
| #2732 | 25 |
| #2812 | 34 |
| #2892 | 118 |
| #2973 | 88 |
| #3053 | 63 |
| #3133 | 92 |
| #3214 | 3 |
| #3294 | -48 |
| #3374 | -48 |
| #3455 | -149 |
| #3535 | -172 |
| #3615 | -149 |
| #3696 | -209 |
| #3776 | -168 |
| #3856 | -105 |
| #3937 | -123 |
| #4017 | -42 |
| #4097 | 17 |
| #4177 | -8 |
| #4258 | 56 |
| #4338 | 60 |
| #4418 | -10 |
| #4499 | 9 |
| #4579 | -46 |
| #4659 | -140 |
| #4740 | -131 |
| #4820 | -194 |
| #4900 | -254 |
| #4981 | -206 |
| #5061 | -231 |
| #5141 | -228 |
| #5222 | -133 |
| #5302 | -133 |
| #5382 | -97 |
| #5463 | -7 |
| #5543 | -34 |
| #5623 | -20 |
| #5704 | 16 |
| #5784 | -67 |
| #5864 | -89 |
| #5944 | -102 |
| #6025 | -212 |
| #6105 | -227 |
| #6185 | -237 |
| #6266 | -314 |
| #6346 | -275 |
| #6426 | -247 |
| #6507 | -269 |
| #6587 | -179 |
| #6667 | -136 |
| #6748 | -142 |
| #6828 | -55 |
| #6908 | -52 |
| #6989 | -91 |
| #7069 | -51 |
| #7149 | -112 |
| #7230 | -186 |
| #7310 | -178 |
| #7390 | -265 |
| #7471 | -321 |
| #7551 | -294 |
| #7631 | -351 |
| #7711 | -346 |
| #7792 | -272 |
| #7872 | -289 |
| #7952 | -234 |
| #8033 | -149 |
| #8113 | -169 |
| #8193 | -120 |
| #8274 | -80 |
| #8354 | -148 |
| #8434 | -139 |
| #8515 | -161 |
| #8595 | -267 |
| #8675 | -272 |
| #8756 | -313 |
| #8836 | -399 |
| #8916 | -365 |
| #8997 | -376 |
| #9077 | -403 |
| #9157 | -314 |
| #9237 | -294 |
| #9318 | -283 |
| #9398 | -182 |
| #9478 | -183 |
| #9559 | -187 |
| #9639 | -130 |
| #9719 | -191 |
| #9800 | -233 |
| #9880 | -226 |
| #9960 | -328 |
| #10041 | -372 |
| #10121 | -367 |
| #10201 | -452 |
| #10282 | -444 |
| #10362 | -401 |
| #10442 | -437 |
| #10523 | -368 |
| #10603 | -301 |
| #10683 | -315 |
| #10764 | -234 |
| #10844 | -199 |
| #10924 | -244 |
| #11004 | -203 |
| #11085 | -232 |
| #11165 | -319 |
| #11245 | -312 |
| #11326 | -380 |
| #11406 | -463 |
| #11486 | -439 |
| #11567 | -488 |
| #11647 | -516 |
| #11727 | -442 |
| #11808 | -450 |
| #11888 | -423 |
| #11968 | -323 |
| #12049 | -329 |
| #12129 | -297 |
| #12209 | -231 |
| #12290 | -286 |
| #12370 | -290 |
| #12450 | -284 |
| #12530 | -387 |
| #12611 | -413 |
| #12691 | -433 |
| #12771 | -532 |
| #12852 | -524 |
| #12932 | -517 |
| #13012 | -566 |
| #13093 | -496 |
| #13173 | -456 |
| #13253 | -463 |
| #13334 | -365 |
| #13414 | -337 |
| #13494 | -354 |
| #13575 | -287 |
| #13655 | -319 |
| #13735 | -376 |
| #13816 | -358 |
| #13896 | -441 |
| #13976 | -512 |
| #14057 | -502 |
| #14137 | -581 |
| #14217 | -608 |
| #14297 | -558 |
| #14378 | -593 |
| #14458 | -557 |
| #14538 | -471 |
| #14619 | -482 |
| #14699 | -422 |
| #14779 | -354 |
| #14860 | -395 |
| #14940 | -364 |
| #15020 | -357 |
| #15101 | -449 |
| #15181 | -452 |
| #15261 | -492 |
| #15342 | -596 |
| #15422 | -587 |
| #15502 | -617 |
| #15583 | -676 |
| #15663 | -613 |
| #15743 | -605 |
| #15824 | -607 |
| #15904 | -504 |
| #15984 | -488 |
| #16064 | -478 |
| #16145 | -393 |
| #16225 | -423 |
| #16305 | -446 |
| #16386 | -416 |
| #16466 | -504 |
| #16546 | -554 |
| #16627 | -555 |
| #16707 | -657 |
| #16787 | -680 |
| #16868 | -659 |
| #16948 | -720 |
| #17028 | -679 |
| #17109 | -618 |
| #17189 | -637 |
| #17269 | -555 |
| #17350 | -496 |
| #17430 | -519 |
| #17510 | -455 |
| #17590 | -450 |
| #17671 | -519 |
| #17751 | -498 |
| #17831 | -552 |
| #17912 | -646 |
| #17992 | -637 |
| #18072 | -702 |
| #18153 | -763 |
| #18233 | -714 |
| #18313 | -743 |
| #18394 | -739 |
| #18474 | -646 |
| #18554 | -647 |
| #18635 | -609 |
| #18715 | -519 |
| #18795 | -545 |
| #18876 | -528 |
| #18956 | -493 |
| #19036 | -576 |
| #19117 | -595 |
| #19197 | -609 |
| #19277 | -719 |
| #19357 | -733 |
| #19438 | -747 |
| #19518 | -824 |
| #19598 | -784 |
| #19679 | -759 |
| #19759 | -782 |
| #19839 | -691 |
| #19920 | -650 |
| #20000 | -654 |
Fill parent
height is a number in pixels (450 by default) or a string such as '100%' — then the chart fills a parent that has a definite height and redraws when it is resized.
| Category | Disk, GB |
|---|---|
| Mon | 212 |
| Tue | 218 |
| Wed | 221 |
| Thu | 230 |
| Fri | 236 |
| Sat | 239 |
| Sun | 247 |
Events
pointClick reports the clicked value (seriesIndex, dataPointIndex, value, category) and seriesToggle reports a legend toggle.
| Category | New | Returning |
|---|---|---|
| Jan | 120 | 310 |
| Feb | 140 | 320 |
| Mar | 132 | 342 |
| Apr | 160 | 351 |
| May | 171 | 377 |
| Jun | 190 | 392 |
Click a point or a legend item.
Accessibility
The chart is an image with a summary (ariaLabel plus the type, the number of series and values and the range) and a visually hidden data table for screen readers. Tab to the chart and use ←/→ to move between values, ↑/↓ to switch series, Home / End and Escape — each value is announced and the tooltip follows.
| Category | Opened | Solved |
|---|---|---|
| January | 180 | 170 |
| February | 164 | 168 |
| March | 192 | 185 |
| April | 175 | 180 |
| May | 150 | 158 |
| June | 142 | 147 |
Design tokens
dt changes the tokens of one chart: the series palette (series.color1 … color7), the line width, the area fade, the grid. A series can also bring its own color.
| Category | Solar | Grid | Battery |
|---|---|---|---|
| Jan | 120 | 420 | 40 |
| Feb | 180 | 380 | 60 |
| Mar | 260 | 330 | 90 |
| Apr | 340 | 280 | 120 |
| May | 410 | 230 | 150 |
| Jun | 460 | 200 | 170 |
Pass through
pt adds classes and styles to the parts — root, legend, legendItem, plot, svg, grid, axis, series, line, area, marker, crosshair, tooltip, empty, skeleton. unstyled drops the tectra styles and keeps the behaviour.
| Category | Forecast | Actual |
|---|---|---|
| Jan | 100 | 96 |
| Feb | 110 | 114 |
| Mar | 120 | 117 |
| Apr | 130 | 136 |
| May | 140 | 139 |
| Jun | 150 | 158 |