Interactive demo
The spread between the 10-year and 2-year Treasury yields is the most-watched recession signal in markets. When it turns negative, the yield curve has inverted: short money pays more than long money, which markets only do when they expect the economy to slow. This chart plots it on real public FRED data, back to 1976, with every NBER recession shaded, so you can see the pattern for yourself. It is one of the sixteen economic dashboards I maintain, ported from R to a live, dependency-free chart on this static site.
Loading the chart data...
A small Node generator pulls two series (the 10-year and 2-year constant-maturity Treasury yields) from the public FRED endpoint run by the Federal Reserve, computes the monthly spread, and writes a static JSON. This page fetches that JSON and draws it with a hand-rolled, dependency-free SVG line chart, so the whole thing is a static export with no server and no charting library. It mirrors the pull-at-render-time model of the R/Quarto dashboards it came from: the data is real and refreshes when the generator is re-run, rather than being a screenshot that silently goes stale. The recession bands are NBER business-cycle dates.
View the raw data that drives this page.
This is the analytics side of what I do: public data, pulled and transformed on a schedule, rendered so it cannot quietly go stale. Happy to get into the pipeline or the chart.