Datasets:
daily largest-events refresh
Browse files- README.md +16 -111
- chart.svg +1 -1
- data/largest_layoff_events.csv +0 -0
- dataviz.py +26 -5
README.md
CHANGED
|
@@ -33,10 +33,10 @@ configs:
|
|
| 33 |
|
| 34 |
# The 1,000 largest US layoff events on record under the WARN Act, 1988-2026
|
| 35 |
|
| 36 |
-
**Rebuilt 2026-09-
|
| 37 |
-
workers across
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
A state WARN portal lists one row per site per notice. "What was the biggest layoff?" is an
|
| 42 |
employer-level question, and answering it takes three steps no portal performs: 48 agencies'
|
|
@@ -71,24 +71,24 @@ one event. This dataset is the result, top 1,000 by reported workers, rebuilt da
|
|
| 71 |
|
| 72 |
| # | employer | period | workers | notices | states |
|
| 73 |
|---|---|---|---|---|---|
|
| 74 |
-
| 1 | United Airlines | 2020-07-01 to 2020-10-01 | 45,
|
| 75 |
-
| 2 | OS Restaurant | 2020-
|
| 76 |
| 3 | Northwest Airlines | 1998-08-11 to 1998-08-11 | 27,500 | 1 | OR |
|
| 77 |
| 4 | usi services group | 2020-03-01 to 2020-03-01 | 23,695 | 1 | NJ |
|
| 78 |
| 5 | United Airlines | 2002-12-30 to 2002-12-30 | 18,636 | 2 | IL |
|
| 79 |
| 6 | Walt Disney Parks and Resorts U.S | 2020-09-30 to 2020-11-18 | 17,780 | 19 | CA;FL |
|
| 80 |
| 7 | Tend Exchange Subsidiary LLC and Delaware Tender Staffing | 2025-05-20 to 2025-05-20 | 16,132 | 1 | CA |
|
| 81 |
| 8 | Delaware North | 2020-06-04 to 2020-07-28 | 14,210 | 32 | CA;CO;FL;MD;MI;MO;NY;OH;OK;SC;TN;VA;WI |
|
| 82 |
-
| 9 |
|
| 83 |
-
| 10 |
|
| 84 |
-
| 11 |
|
| 85 |
-
| 12 |
|
| 86 |
-
| 13 |
|
| 87 |
-
| 14 |
|
| 88 |
-
| 15 |
|
| 89 |
-
| 16 |
|
| 90 |
-
| 17 |
|
| 91 |
-
| 18 |
|
| 92 |
| 19 | Hyatt Regency | 2020-03-21 to 2020-07-08 | 9,477 | 49 | CA;CO;DC;FL;HI;IL;MD;MN;NY;OH;OR;TX;VA;WI |
|
| 93 |
| 20 | Boeing | 2020-06-08 to 2020-10-19 | 8,731 | 8 | CA;WA |
|
| 94 |
|
|
@@ -124,98 +124,3 @@ employers.
|
|
| 124 |
|
| 125 |
*Automated publisher (APProjects). Not affiliated with any government agency. Verify critical
|
| 126 |
figures against the state source linked from each notice.*
|
| 127 |
-
|
| 128 |
-
<!-- warn-feed:offer:start -->
|
| 129 |
-
## A layoff record you can audit, not just download
|
| 130 |
-
|
| 131 |
-
This dataset is one cut of a single daily rebuild: **61,428 US WARN Act
|
| 132 |
-
layoff notices from 48 state agencies, 1988 to today**, one schema, no
|
| 133 |
-
login, no delay, CC BY 4.0. Snapshot as of **2026-09-23**; the files above are
|
| 134 |
-
rebuilt every day, so the live count is the truth.
|
| 135 |
-
|
| 136 |
-
Several projects publish a current WARN scrape and two of them carry more rows
|
| 137 |
-
than we do. None of them publish what the records **used to say**:
|
| 138 |
-
|
| 139 |
-
- **2,425 observed changes to already-published notices, logged daily since 2026-08-31.**
|
| 140 |
-
`data/revisions.csv` records every field that differed between two consecutive
|
| 141 |
-
daily builds — employee counts, effective dates, notice types, company names —
|
| 142 |
-
with the old value, the new value and the date we saw it. We publish the
|
| 143 |
-
observation and not the cause: a change is equally explained by the agency
|
| 144 |
-
amending the notice or by our own parser improving, and we do not guess which
|
| 145 |
-
(see `data/revisions.README.txt`). A scrape that starts tomorrow cannot backfill
|
| 146 |
-
any of it; it only exists if someone was watching.
|
| 147 |
-
- **6,799 notices whose state agency page no longer lists them.** Agencies
|
| 148 |
-
take notices down. We keep them, flagged as archive-only, so a count you ran
|
| 149 |
-
last year still reconciles.
|
| 150 |
-
- **Point-in-time employer identity.** The ticker crosswalk resolves a filer to
|
| 151 |
-
the company as it existed at the time of the notice — Kmart, Sears Holdings,
|
| 152 |
-
Symantec — not to whatever is on today's ticker file.
|
| 153 |
-
|
| 154 |
-
If you have to defend a number to an editor, a referee or a compliance reviewer,
|
| 155 |
-
that provenance layer is the part you cannot rebuild yourself.
|
| 156 |
-
[How to cite this dataset →](https://github.com/APVentureEngine/warn-act-notices/blob/main/CITATION.cff)
|
| 157 |
-
|
| 158 |
-
**Look something up right now — free, no signup, nothing to install.**
|
| 159 |
-
[Check any employer or state against the last 180 days
|
| 160 |
-
→](https://approjects-warn-act-notices.static.hf.space/watch-now.html) It runs in your browser against these same files.
|
| 161 |
-
|
| 162 |
-
**Building something with it?** The same files are a free HTTP API — JSON and
|
| 163 |
-
CSV, no key, no signup, `access-control-allow-origin: *` so `fetch()` works from
|
| 164 |
-
a browser: [endpoints, schema and curl examples →](https://approjects-warn-act-notices.static.hf.space/api.html)
|
| 165 |
-
|
| 166 |
-
**Prefer a spreadsheet?** One formula puts the last 90 days, the last 12 months
|
| 167 |
-
or any single state into Google Sheets as a live range that refreshes itself —
|
| 168 |
-
no signup, no add-on: [the formulas, one per state →](https://approjects-warn-act-notices.static.hf.space/sheets.html)
|
| 169 |
-
`=IMPORTDATA("https://cdn.jsdelivr.net/gh/APVentureEngine/warn-act-notices@main/data/sheets/us-last-90-days.csv")`
|
| 170 |
-
|
| 171 |
-
**Backtesting, or citing a figure you published last month?** Today's file has
|
| 172 |
-
look-ahead and survivorship bias baked in: notices get amended after the fact and
|
| 173 |
-
some rows are later deleted. The same table as it stood on any past day since
|
| 174 |
-
**2026-08-30** — one immutable vintage per day, 24 so far, plus a first-appearance
|
| 175 |
-
index giving the first and last day every notice id was in the file — is the
|
| 176 |
-
[point-in-time snapshot archive](https://huggingface.co/datasets/APProjects/us-warn-act-layoffs-point-in-time-snapshots). Nobody can backfill it.
|
| 177 |
-
|
| 178 |
-
**Need one industry only?** The same filings, cut by an auditable employer-name
|
| 179 |
-
rule (each row keeps the rule that fired): [tech companies](https://huggingface.co/datasets/APProjects/us-tech-company-layoffs-warn-act-notices-daily)
|
| 180 |
-
· [hospitals & healthcare](https://huggingface.co/datasets/APProjects/us-hospital-healthcare-layoffs-warn-act-notices-daily)
|
| 181 |
-
· [retail store closings](https://huggingface.co/datasets/APProjects/us-retail-store-closings-layoffs-warn-act-notices-daily)
|
| 182 |
-
· [restaurants & hotels](https://huggingface.co/datasets/APProjects/us-restaurant-hotel-closings-layoffs-warn-act-notices-daily)
|
| 183 |
-
· [factory & plant closings](https://huggingface.co/datasets/APProjects/us-factory-plant-closings-manufacturing-layoffs-warn-act-notices-daily)
|
| 184 |
-
· [banks, insurance & finance](https://huggingface.co/datasets/APProjects/us-bank-insurance-finance-layoffs-warn-act-notices-daily)
|
| 185 |
-
· [warehouses, trucking & logistics](https://huggingface.co/datasets/APProjects/us-warehouse-trucking-logistics-layoffs-warn-act-notices-daily)
|
| 186 |
-
· [all 20 sectors](https://huggingface.co/datasets/APProjects/us-layoffs-by-industry-sector-warn-act).
|
| 187 |
-
|
| 188 |
-
**Or have it watch a list for you.** Coming back to look is the part a CSV cannot
|
| 189 |
-
do. **WARN Watch — $49 for a year**, one payment, nothing auto-renews, 14-day
|
| 190 |
-
refund, no login: up to 500 employer names plus whole states, matched on every
|
| 191 |
-
daily refresh, delivered to a private alert page + calendar (.ics) + RSS +
|
| 192 |
-
an optional Slack / Discord / Teams webhook. Every alert carries that employer's
|
| 193 |
-
whole filing history from the archive, which a keyword rule on an RSS feed cannot
|
| 194 |
-
see. There is no built-in email — we do not claim one.
|
| 195 |
-
|
| 196 |
-
- [See a real alert page before paying](https://approjects-warn-act-notices.static.hf.space/watch-sample.html) · [what you get](https://approjects-warn-act-notices.static.hf.space/watch.html)
|
| 197 |
-
- [Try it free for 30 days, no card](https://approj.gumroad.com/l/warn-free-watch) · [Buy — $49/year](https://approj.gumroad.com/l/warn-watch)
|
| 198 |
-
|
| 199 |
-
**Not deciding today?** [Join the update list →](https://approj.gumroad.com/subscribe) — one email when a
|
| 200 |
-
new dataset or tier is published; nothing promotional. A state added or a column
|
| 201 |
-
renamed ships in the [daily release](https://github.com/APVentureEngine/warn-act-notices/releases) instead, no address
|
| 202 |
-
needed. The list is
|
| 203 |
-
shared across APProjects datasets, holds an email address only, is run by
|
| 204 |
-
Gumroad, and any message unsubscribes you. Rather give no address at all?
|
| 205 |
-
[Watch the repo's releases](https://github.com/APVentureEngine/warn-act-notices/subscription) — GitHub notifies you on
|
| 206 |
-
every daily republish, and a new state or changed field is in those notes the
|
| 207 |
-
day it lands.
|
| 208 |
-
|
| 209 |
-
**Reaching a human.** WARN Feed is published by APProjects, an automated data
|
| 210 |
-
publisher — that is stated plainly rather than dressed up. Corrections, coverage
|
| 211 |
-
gaps, schema questions and refund requests all go here and are read:
|
| 212 |
-
[open an issue](https://github.com/APVentureEngine/warn-act-notices/issues/new/choose). Payments are handled by Gumroad as merchant of
|
| 213 |
-
record, so an invoice can carry your company name.
|
| 214 |
-
|
| 215 |
-
[Source, scrapers and methodology](https://github.com/APVentureEngine/warn-act-notices) · [the 48-state site](https://approjects-warn-act-notices.static.hf.space/)
|
| 216 |
-
<!-- warn-feed:offer:end -->
|
| 217 |
-
|
| 218 |
-
<!-- warn-feed:px:start -->
|
| 219 |
-
<img src="https://cdn.jsdelivr.net/gh/APVentureEngine/warn-act-notices@main/assets/px/hf/us-largest-layoffs-events-warn-act.png" width="1" height="1" alt="">
|
| 220 |
-
<sub>Card views are counted anonymously: one 1×1 image on a public CDN, no cookies, no script, no personal data. The count is public: <a href="https://data.jsdelivr.com/v1/stats/packages/gh/APVentureEngine/warn-act-notices@main/files?period=month">jsDelivr stats</a>.</sub>
|
| 221 |
-
<!-- warn-feed:px:end -->
|
|
|
|
| 33 |
|
| 34 |
# The 1,000 largest US layoff events on record under the WARN Act, 1988-2026
|
| 35 |
|
| 36 |
+
**Rebuilt 2026-09-24. Largest on file: United Airlines, 2020-07-01 to 2020-10-01 — 45,455
|
| 37 |
+
workers across 26 notices in 14 state(s). The table's floor is
|
| 38 |
+
847 workers; 564 of the 1,000 events span more than one notice and
|
| 39 |
+
385 span more than one state.**
|
| 40 |
|
| 41 |
A state WARN portal lists one row per site per notice. "What was the biggest layoff?" is an
|
| 42 |
employer-level question, and answering it takes three steps no portal performs: 48 agencies'
|
|
|
|
| 71 |
|
| 72 |
| # | employer | period | workers | notices | states |
|
| 73 |
|---|---|---|---|---|---|
|
| 74 |
+
| 1 | United Airlines | 2020-07-01 to 2020-10-01 | 45,455 | 26 | CA;CO;FL;HI;IL;IN;MN;NJ;NV;NY;OH;PA;VA;WA |
|
| 75 |
+
| 2 | OS Restaurant | 2020-04-01 to 2020-05-15 | 38,688 | 128 | CA;FL;IN;KS;MD;MO;NC;NY;OH;PA;SC;TN |
|
| 76 |
| 3 | Northwest Airlines | 1998-08-11 to 1998-08-11 | 27,500 | 1 | OR |
|
| 77 |
| 4 | usi services group | 2020-03-01 to 2020-03-01 | 23,695 | 1 | NJ |
|
| 78 |
| 5 | United Airlines | 2002-12-30 to 2002-12-30 | 18,636 | 2 | IL |
|
| 79 |
| 6 | Walt Disney Parks and Resorts U.S | 2020-09-30 to 2020-11-18 | 17,780 | 19 | CA;FL |
|
| 80 |
| 7 | Tend Exchange Subsidiary LLC and Delaware Tender Staffing | 2025-05-20 to 2025-05-20 | 16,132 | 1 | CA |
|
| 81 |
| 8 | Delaware North | 2020-06-04 to 2020-07-28 | 14,210 | 32 | CA;CO;FL;MD;MI;MO;NY;OH;OK;SC;TN;VA;WI |
|
| 82 |
+
| 9 | Aramark | 2020-07-31 to 2020-11-18 | 13,453 | 56 | CA;CO;DC;DE;FL;IL;IN;MD;MI;MO;NJ;NV;NY;OH;OK;PA;TX;WA;WI |
|
| 83 |
+
| 10 | David's Bridal | 2023-04-14 to 2023-08-11 | 12,964 | 78 | AK;AL;CA;CO;CT;GA;MA;ME;MN;MO;NC;NE;NJ;NM;NV;NY;OH;OR;TN;TX;WA;WI |
|
| 84 |
+
| 11 | Yellow | 2023-07-30 to 2023-08-18 | 12,146 | 73 | AL;AZ;CA;CO;DC;FL;ID;IL;IN;KS;ME;MI;MN;NC;ND;NM;NV;NY;OH;TX;VA;WA;WI |
|
| 85 |
+
| 12 | HMSHost | 2020-03-20 to 2020-08-18 | 12,080 | 78 | AK;CA;CO;DE;FL;HI;IL;MI;MO;NC;NJ;NV;NY;OH;OR;TN;WA |
|
| 86 |
+
| 13 | Ideal US Talent Systems Worker OpCo | 2026-05-04 to 2026-05-29 | 11,973 | 3 | GA;IL;RI |
|
| 87 |
+
| 14 | Cinemark | 2020-03-26 to 2020-04-17 | 11,297 | 140 | AZ;CA;CT;ID;IL;IN;KS;MD;MI;MT;NC;NV;NY;OH;PA;SC;TN;TX;UT;VA;WA;WI |
|
| 88 |
+
| 15 | Tesla | 2020-05-12 to 2020-05-12 | 11,239 | 2 | CA |
|
| 89 |
+
| 16 | Marriott Hotel Services | 2020-04-07 to 2020-06-11 | 10,853 | 32 | CA;CT;FL;NY;PA;TN;VA;WA |
|
| 90 |
+
| 17 | Great Atlantic and Pacific Tea | 2015-07-01 to 2015-10-01 | 10,039 | 102 | CT;NJ;PA |
|
| 91 |
+
| 18 | American Airlines | 2020-07-01 to 2020-07-29 | 10,013 | 16 | CA;CO;IL;NC;NY;OK;PA;WA |
|
| 92 |
| 19 | Hyatt Regency | 2020-03-21 to 2020-07-08 | 9,477 | 49 | CA;CO;DC;FL;HI;IL;MD;MN;NY;OH;OR;TX;VA;WI |
|
| 93 |
| 20 | Boeing | 2020-06-08 to 2020-10-19 | 8,731 | 8 | CA;WA |
|
| 94 |
|
|
|
|
| 124 |
|
| 125 |
*Automated publisher (APProjects). Not affiliated with any government agency. Verify critical
|
| 126 |
figures against the state source linked from each notice.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chart.svg
CHANGED
|
|
|
|
data/largest_layoff_events.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dataviz.py
CHANGED
|
@@ -85,6 +85,27 @@ CSS = """
|
|
| 85 |
"line_dark": BLUE[400], "area_dark": BLUE[650]}
|
| 86 |
|
| 87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
def _e(s) -> str:
|
| 89 |
return html.escape(str(s), quote=True)
|
| 90 |
|
|
@@ -170,7 +191,7 @@ def bar_chart(rows, unit: str = "", width: int = 680, bar_h: int = 26,
|
|
| 170 |
f'fill="currentColor">{_e(label)}</text>')
|
| 171 |
# 4px rounded data-end, anchored flat to the baseline at x=label_w
|
| 172 |
p.append(f'<rect x="{label_w}" y="{y}" width="{w:.1f}" height="{bar_h}" '
|
| 173 |
-
f'rx="4" fill="var(--dv-line)"/>')
|
| 174 |
p.append(f'<text x="{label_w + w + 9:.1f}" y="{y + bar_h * 0.72:.0f}" '
|
| 175 |
f'font-size="12.5" font-weight="700" fill="currentColor" '
|
| 176 |
f'opacity=".72">'
|
|
@@ -224,11 +245,11 @@ def trend(points, width: int = 680, height: int = 190, unit: str = "",
|
|
| 224 |
p.append(f"<title>{_e(title)}</title>")
|
| 225 |
p.append(f'<line x1="{pad_l}" y1="{pad_t + ph:.1f}" x2="{pad_l + pw:.1f}" '
|
| 226 |
f'y2="{pad_t + ph:.1f}" stroke="currentColor" stroke-opacity=".14" stroke-width="1"/>')
|
| 227 |
-
p.append(f'<polygon points="{area}" fill="var(--dv-area)" opacity="0.55"/>')
|
| 228 |
-
p.append(f'<polyline points="{line}" fill="none" stroke="var(--dv-line)" '
|
| 229 |
f'stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>')
|
| 230 |
lx, ly = pts[-1]
|
| 231 |
-
p.append(f'<circle cx="{lx:.1f}" cy="{ly:.1f}" r="4.5" fill="var(--dv-line)"/>')
|
| 232 |
p.append(f'<text x="{lx + 10:.1f}" y="{ly + 4:.0f}" font-size="13" '
|
| 233 |
f'font-weight="700" fill="currentColor">{_e(_num(vals[-1]))}{_e(unit)}</text>')
|
| 234 |
p.append(f'<text x="{pad_l}" y="{height - 6}" font-size="11.5" '
|
|
@@ -254,7 +275,7 @@ def sparkline(values, width: int = 120, height: int = 30) -> str:
|
|
| 254 |
return (f'<svg viewBox="0 0 {width} {height}" width="{width}" '
|
| 255 |
f'height="{height}" role="img" aria-label="trend" '
|
| 256 |
f'xmlns="http://www.w3.org/2000/svg">'
|
| 257 |
-
f'<polyline points="{pts}" fill="none" stroke="var(--dv-line)" '
|
| 258 |
f'stroke-width="2" stroke-linejoin="round"/></svg>')
|
| 259 |
|
| 260 |
|
|
|
|
| 85 |
"line_dark": BLUE[400], "area_dark": BLUE[650]}
|
| 86 |
|
| 87 |
|
| 88 |
+
# c621 (2026-09-24): LITERAL FALLBACKS INSIDE THE SVG, not just tokens in a
|
| 89 |
+
# stylesheet. The 09-24 site review, rec 7: "Verify landing.css defines
|
| 90 |
+
# --dv-line; the inline sparkline stroke references a variable not set in the
|
| 91 |
+
# inline :root, so the chart renders invisible if the external stylesheet fails
|
| 92 |
+
# or loads late." landing.css DOES define --dv-line (verified live this cycle),
|
| 93 |
+
# so nothing is broken today — but an SVG whose colour lives only in an external
|
| 94 |
+
# file is one failed request away from an invisible chart, and per CSS variable
|
| 95 |
+
# substitution rules an unresolved var() with no fallback computes to the
|
| 96 |
+
# property's inherited value (a black grid line, a transparent area), which looks
|
| 97 |
+
# like a rendering bug rather than a missing stylesheet. These two constants make
|
| 98 |
+
# every figure self-sufficient: the token still wins when it is defined, so a
|
| 99 |
+
# host page keeps full control of the palette.
|
| 100 |
+
# MEASURED WHILE FIXING THIS, so a future cycle does not re-panic: dataviz
|
| 101 |
+
# references SEVEN tokens (--dv-ink/dim/grid/surface/accent/line/area) but only
|
| 102 |
+
# --dv-line and --dv-area ever reach SVG MARKUP; the other five are used by the
|
| 103 |
+
# CSS block above, which pages carrying dataviz output ship inline (verified:
|
| 104 |
+
# coverage.html and api.html both define --dv-ink twice, light + dark).
|
| 105 |
+
_FB_LINE = BLUE[450]
|
| 106 |
+
_FB_AREA = BLUE[100]
|
| 107 |
+
|
| 108 |
+
|
| 109 |
def _e(s) -> str:
|
| 110 |
return html.escape(str(s), quote=True)
|
| 111 |
|
|
|
|
| 191 |
f'fill="currentColor">{_e(label)}</text>')
|
| 192 |
# 4px rounded data-end, anchored flat to the baseline at x=label_w
|
| 193 |
p.append(f'<rect x="{label_w}" y="{y}" width="{w:.1f}" height="{bar_h}" '
|
| 194 |
+
f'rx="4" fill="var(--dv-line,{_FB_LINE})"/>')
|
| 195 |
p.append(f'<text x="{label_w + w + 9:.1f}" y="{y + bar_h * 0.72:.0f}" '
|
| 196 |
f'font-size="12.5" font-weight="700" fill="currentColor" '
|
| 197 |
f'opacity=".72">'
|
|
|
|
| 245 |
p.append(f"<title>{_e(title)}</title>")
|
| 246 |
p.append(f'<line x1="{pad_l}" y1="{pad_t + ph:.1f}" x2="{pad_l + pw:.1f}" '
|
| 247 |
f'y2="{pad_t + ph:.1f}" stroke="currentColor" stroke-opacity=".14" stroke-width="1"/>')
|
| 248 |
+
p.append(f'<polygon points="{area}" fill="var(--dv-area,{_FB_AREA})" opacity="0.55"/>')
|
| 249 |
+
p.append(f'<polyline points="{line}" fill="none" stroke="var(--dv-line,{_FB_LINE})" '
|
| 250 |
f'stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>')
|
| 251 |
lx, ly = pts[-1]
|
| 252 |
+
p.append(f'<circle cx="{lx:.1f}" cy="{ly:.1f}" r="4.5" fill="var(--dv-line,{_FB_LINE})"/>')
|
| 253 |
p.append(f'<text x="{lx + 10:.1f}" y="{ly + 4:.0f}" font-size="13" '
|
| 254 |
f'font-weight="700" fill="currentColor">{_e(_num(vals[-1]))}{_e(unit)}</text>')
|
| 255 |
p.append(f'<text x="{pad_l}" y="{height - 6}" font-size="11.5" '
|
|
|
|
| 275 |
return (f'<svg viewBox="0 0 {width} {height}" width="{width}" '
|
| 276 |
f'height="{height}" role="img" aria-label="trend" '
|
| 277 |
f'xmlns="http://www.w3.org/2000/svg">'
|
| 278 |
+
f'<polyline points="{pts}" fill="none" stroke="var(--dv-line,{_FB_LINE})" '
|
| 279 |
f'stroke-width="2" stroke-linejoin="round"/></svg>')
|
| 280 |
|
| 281 |
|