-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchartbook.html
More file actions
431 lines (422 loc) · 21.9 KB
/
chartbook.html
File metadata and controls
431 lines (422 loc) · 21.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>US Chartbook | BD Economics</title>
<link rel="stylesheet" href="style.css">
<meta name="description" content="Open source chartbook with 250+ charts tracking the US economy since 1989. Covers GDP, labor markets, inflation, wages, trade, financial markets, household wealth, and government finances. Updated regularly with public data from BEA, BLS, Census, the Federal Reserve, and Treasury.">
<meta name="keywords" content="US economy, US economic chartbook, US economy charts, GDP charts, labor market data, inflation charts, US trade data, financial markets, household wealth, government finances, macroeconomics, economic indicators, FRED, BLS data, BEA data, open source economics">
<meta name="author" content="Brian Dew">
<link rel="canonical" href="https://bd-econ.com/chartbook.html">
<!-- Open Graph -->
<meta property="og:title" content="US Chartbook | BD Economics">
<meta property="og:description" content="Open source chartbook with 250+ charts tracking the US economy since 1989. GDP, labor markets, inflation, trade, financial markets, and more.">
<meta property="og:url" content="https://bd-econ.com/chartbook.html">
<meta property="og:type" content="website">
<meta property="og:image" content="https://bd-econ.com/images/01_bdlogo.png">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="US Chartbook | BD Economics">
<meta name="twitter:description" content="Open source chartbook with 250+ charts tracking the US economy since 1989. GDP, labor markets, inflation, trade, financial markets, and more.">
<meta name="twitter:image" content="https://bd-econ.com/images/01_bdlogo.png">
<meta name="google-site-verification" content="DP-2kVWWQ6i8lPgl5gqVAy3cjr-beYZzfhNL5-nVbzs" />
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/manifest.json">
<meta name="theme-color" content="#ffffff">
<script>
(function() {
const saved = localStorage.getItem('theme');
if (saved) {
document.documentElement.setAttribute('data-theme', saved);
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.setAttribute('data-theme', 'dark');
}
})();
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Report",
"name": "US Chartbook",
"description": "Open source chartbook tracking economic and social developments in the United States since 1989.",
"url": "https://bd-econ.com/chartbook.html",
"author": {
"@type": "Person",
"name": "Brian Dew",
"url": "https://bd-econ.com"
},
"about": {
"@type": "Thing",
"name": "United States Economy"
},
"temporalCoverage": "1989/..",
"spatialCoverage": "United States",
"isAccessibleForFree": true,
"encoding": {
"@type": "MediaObject",
"contentUrl": "https://bd-econ.com/chartbook.pdf",
"encodingFormat": "application/pdf"
},
"hasPart": [
{"@type": "Report", "name": "Overall Economic Activity", "description": "GDP, national income, economic growth, and business cycles"},
{"@type": "Report", "name": "Financial Accounts", "description": "Wealth, liabilities, sectoral balances, and investment"},
{"@type": "Report", "name": "Households", "description": "Demographics, income, spending, saving, balance sheets, housing, and poverty"},
{"@type": "Report", "name": "Businesses", "description": "Investment, corporate profits, balance sheets, industrial production, and retail sales"},
{"@type": "Report", "name": "Government", "description": "Receipts, expenditures, government jobs, and balance sheets"},
{"@type": "Report", "name": "External Sector", "description": "Balance of payments, international trade, investment, capital flows, and exchange rates"},
{"@type": "Report", "name": "Labor Markets", "description": "Employment, unemployment, participation, wages, productivity, and union membership"},
{"@type": "Report", "name": "Financial Markets", "description": "Equity markets, interest rates, monetary policy, and yield curves"},
{"@type": "Report", "name": "Prices", "description": "Consumer prices, producer prices, PCE inflation, inflation expectations, and commodities"}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Reports",
"item": "https://bd-econ.com/reports.html"
},
{
"@type": "ListItem",
"position": 2,
"name": "US Chartbook",
"item": "https://bd-econ.com/chartbook.html"
}
]
}
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PGVF5S620Y"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PGVF5S620Y');
</script>
<style>
.details-section {
max-width: 760px;
padding: 0 12px;
box-sizing: border-box;
}
.cb-free {
text-align: center;
font-size: 14px;
color: var(--color-text-muted);
margin: 8px 0 4px 0;
}
.cb-previews {
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: center;
margin: 16px 0 8px 0;
}
.cb-previews img {
width: 220px;
height: auto;
border: 1px solid var(--color-grid);
border-radius: var(--radius);
cursor: pointer;
transition: opacity 0.15s;
}
.cb-previews img:hover {
opacity: 0.85;
}
@media (max-width: 760px) {
.cb-previews img { width: 160px; }
}
.cb-row {
display: flex;
gap: 30px;
align-items: stretch;
margin: 0 auto;
max-width: 760px;
padding: 0 12px;
box-sizing: border-box;
}
.cb-download {
flex: 0 0 320px;
display: flex;
flex-direction: column;
gap: 12px;
border: 1px solid var(--color-border-light);
border-radius: var(--radius);
padding: 14px 18px;
box-shadow: 0 2px 8px color-mix(in srgb, var(--color-text-gray) 12%, transparent);
min-height: 420px;
}
.cb-download h4 {
margin: 0;
}
.cb-download a {
text-decoration: none;
flex: 1;
display: flex;
margin-top: 10px;
}
.cb-download .nav-card {
margin: 0 16px;
flex: 1;
}
.cb-download .nav-card-body p {
font-size: 15px;
}
.cb-download .nav-card-body .cb-updated-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--color-text-subtle);
margin: 16px 0 0 0;
padding-bottom: 4px;
border-bottom: 2px solid var(--color-card-green);
display: inline-block;
}
.cb-download .nav-card-body .cb-updated-date {
font-size: 19px;
font-weight: 600;
font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
letter-spacing: -0.5px;
margin: 8px 0 0 0;
}
.cb-download .cb-free {
margin: 8px 0 0 0;
}
.cb-sources {
flex: 0 1 320px;
min-width: 0;
margin-left: auto;
border: 1px solid var(--color-border-light);
border-radius: var(--radius);
padding: 14px 18px;
box-shadow: 0 2px 8px color-mix(in srgb, var(--color-text-gray) 12%, transparent);
display: flex;
flex-direction: column;
gap: 0;
}
.cb-sources h4 {
margin: 0;
}
.cb-download .hr-accent {
margin: -4px 0 4px 0;
}
.cb-sources .hr-accent {
margin: 6px 0 10px 0;
}
.cb-sources table {
width: 100%;
border-collapse: collapse;
}
.cb-sources td {
padding: 5px 6px;
border-bottom: 1px solid var(--color-border-light);
font-size: 14px;
font-weight: normal;
}
.cb-sources table {
flex: 1;
}
.cb-sources td:last-child {
text-align: right;
color: var(--color-text-muted);
white-space: nowrap;
padding-left: 12px;
}
.cb-sources .cb-st {
font-size: 13px;
color: var(--color-text-muted);
margin: 10px 0 0 0;
line-height: 1.5;
}
@media (max-width: 760px) {
.cb-row {
flex-direction: column;
gap: 16px;
}
.cb-row .card-grid {
flex: none;
width: 100%;
}
}
.cb-lightbox {
border: none;
background: transparent;
padding: 0;
max-width: 90vw;
max-height: 90vh;
}
.cb-lightbox::backdrop {
background: color-mix(in srgb, black 80%, transparent);
cursor: pointer;
}
.cb-lightbox img {
max-width: 90vw;
max-height: 90vh;
border-radius: var(--radius);
box-shadow: 0 4px 24px color-mix(in srgb, black 40%, transparent);
}
</style>
</head>
<body>
<a href="#main" class="skip-link">Skip to main content</a>
<nav>
<ul class="ul_nav" id="menu">
<li class="nav_main"> <a href="index.html"><svg class="nav-logo" viewBox="0 0 9 5" width="22" height="12" aria-hidden="true"><rect x="0" y="0" width="1" height="5"/><rect x="0" y="4" width="4" height="1"/><rect x="2" y="2" width="2" height="1"/><rect x="3" y="2" width="1" height="2"/><rect x="8" y="0" width="1" height="5"/><rect x="5" y="4" width="4" height="1"/><rect x="5" y="2" width="2" height="1"/><rect x="5" y="2" width="1" height="2"/></svg>Economics</a> </li>
<li><a href="about.html">About</a> </li>
<li><a href="https://briandew.wordpress.com" target="_blank" rel="noopener">Blog <svg class="icon icon-external" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 3h6v6M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></svg></a> </li>
<li><a href="python.html">Guides <span class="nav-arrow">↓</span></a>
<ul class="hidden">
<li><a href="getstarted.html">Getting Started</a></li>
<li><a href="imfapi1.html">IMF API</a></li>
<li><a href="blsapi.html">BLS API</a></li>
<li><a href="beaapi.html">BEA API</a></li>
<li><a href="censusapi.html">Census API</a></li>
<li><a href="treasuryapi.html">Treasury API</a></li>
<li><a href="cps.html">CPS Microdata</a></li>
</ul>
</li>
<li>
<a href="reports.html" class="active" aria-current="page">Reports <span class="nav-arrow">↓</span></a>
<ul class="hidden">
<li><a href="chartbook.html">US Chartbook</a></li>
<li><a href="indicators.html">Economic Indicators</a></li>
<li><a href="gdpm.html">Monthly GDP</a></li>
<li><a href="imfweo.html">IMF WEO</a></li>
<li><a href="calendar.html">Release Calendar</a></li>
</ul>
</li>
<li><button class="theme-toggle" onclick="toggleTheme()" aria-label="Toggle dark mode"><span id="theme-icon"><svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg></span></button></li>
<li class="icon">
<button type="button" onclick="responsiveNav()" aria-label="Toggle navigation menu" aria-expanded="false">☰</button>
</li>
</ul>
</nav>
<div class="page-strip page-strip-compact accent-green">
<picture><source srcset="images/chartbook_strip.webp" type="image/webp"><img decoding="async" fetchpriority="high" src="images/chartbook_strip.jpg" alt="" aria-hidden="true" class="page-strip-img"></picture>
</div>
<header>
<h1>US Chartbook</h1>
</header>
<main id="main">
<section>
<article class="prose">
<p class="callout accent-green">A deep dive into the US economy — 250+ charts, regularly updated.</p>
<p>The US Chartbook covers nine areas of the US economy in detail, with charts, tables, commentary, and links to public data sources. It connects to BEA, BLS, Census, the Federal Reserve, and Treasury APIs to stay current.</p>
</article>
<div class="cb-row">
<article class="cb-download">
<h4>Read the latest edition <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="width: 14px; height: 14px"><path d="M12 5v14m7-7-7 7-7-7"/></svg></h4>
<hr class="hr-accent accent-green">
<a href="chartbook.pdf" target="_blank" rel="noopener" onclick="gtag('event', 'chartbook_download', {link_url: 'chartbook.pdf', link_text: 'Chartbook'});">
<div class="nav-card accent-green">
<div class="nav-card-banner">
<picture><source srcset="images/chartbook_banner.webp" type="image/webp"><img loading="lazy" decoding="async" src="images/chartbook_banner.png" alt="US Economic Chartbook" width="293" height="68"></picture>
</div>
<div class="nav-card-head">
<h3>Chartbook <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3"/></svg></h3>
</div>
<div class="nav-card-body">
<p>250+ charts on the US economy: labor markets, inflation, GDP, trade, and more. Includes data sources and code.</p>
<p class="cb-updated-label"><svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg> Updated:</p>
<p class="cb-updated-date cb_update"><noscript>regularly</noscript></p>
</div>
</div>
</a>
<p class="cb-free"><a href="https://github.com/bdecon/US-chartbook">Source code on GitHub</a></p>
</article>
<div class="cb-sources" id="cb-sources">
<h4>Data Sources</h4>
<hr class="hr-accent accent-green">
<table><tbody id="cb-sources-table">
</tbody></table>
<p class="cb-st" id="cb-st"></p>
<noscript><p style="font-size: 14px; color: var(--color-text-muted)">Enable JavaScript to see the latest data sources.</p></noscript>
</div>
</div>
<hr class="section-bar accent-green" style="max-width: 760px">
<details class="details-section">
<summary>What's Inside</summary>
<p>The chartbook tracks economic and social developments in the United States since 1989. Each section contains charts, tables, descriptive text, and links to relevant materials. It bridges the gap between raw data resources like FRED and professional analysis like the IMF Article IV—more curated than databases, fresher than traditional analysis.</p>
<ol>
<li><strong>Overall Economic Activity</strong> — GDP, national income, economic growth, and business cycles</li>
<li><strong>Financial Accounts</strong> — Wealth, liabilities, sectoral balances, and investment</li>
<li><strong>Households</strong> — Demographics, income, spending, saving, balance sheets, housing, and poverty</li>
<li><strong>Businesses</strong> — Investment, corporate profits, balance sheets, industrial production, and retail sales</li>
<li><strong>Government</strong> — Receipts, expenditures, government jobs, and balance sheets</li>
<li><strong>External Sector</strong> — Trade, capital flows, exchange rates, and the international investment position</li>
<li><strong>Labor Markets</strong> — Employment, unemployment, participation, wages, productivity, and union membership</li>
<li><strong>Financial Markets</strong> — Equity markets, interest rates, monetary policy, and yield curves</li>
<li><strong>Prices</strong> — Consumer prices, producer prices, PCE inflation, inflation expectations, and commodities</li>
</ol>
</details>
<details class="details-section">
<summary>Sample Pages</summary>
<div class="cb-previews">
<picture><source srcset="images/cb_preview_toc.webp" type="image/webp"><img loading="lazy" decoding="async" src="images/cb_preview_toc.png" alt="Chartbook table of contents" width="600" height="776" tabindex="0" role="button" onclick="openLightbox(this)" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();openLightbox(this)}"></picture>
<picture><source srcset="images/cb_preview_wealth.webp" type="image/webp"><img loading="lazy" decoding="async" src="images/cb_preview_wealth.png" alt="Household Wealth section sample" width="600" height="776" tabindex="0" role="button" onclick="openLightbox(this)" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();openLightbox(this)}"></picture>
<picture><source srcset="images/cb_preview_prices.webp" type="image/webp"><img loading="lazy" decoding="async" src="images/cb_preview_prices.png" alt="PCE Price Index section sample" width="600" height="776" tabindex="0" role="button" onclick="openLightbox(this)" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();openLightbox(this)}"></picture>
</div>
</details>
<details class="details-section">
<summary>Related</summary>
<p>For interactive versions of key indicators, see the <a href="indicators.html">Economic Indicators</a> page. For international economic data and forecasts, see the <a href="imfweo.html">IMF World Economic Outlook</a> page. The <a href="calendar.html">Release Calendar</a> shows when the next update is expected for each data source tracked by the Chartbook. Contributions and corrections are welcome via <a href="https://github.com/bdecon/US-chartbook">GitHub</a>.</p>
</details>
<div class="subfooter" data-hub="reports" data-current="chartbook.html" style="--accent-color: var(--color-card-green)"></div>
</section>
</main>
<footer>
<div class="footer_left">
<p><time datetime="2026">2026</time>, by Brian Dew</p>
</div>
<div class="footer_right">
<a href="https://github.com/bdecon/" aria-label="GitHub"><svg class="icon" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg></a>
<a href="https://www.linkedin.com/in/brian-dew-5788a386/" aria-label="LinkedIn"><svg class="icon" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.016-.709-.52-1.248-1.342-1.248S1.4 3.226 1.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a.3.3 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z"/></svg></a>
<a href="https://twitter.com/bd_econ" aria-label="Twitter"><svg class="icon" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334q.002-.211-.006-.422A6.7 6.7 0 0 0 16 3.542a6.7 6.7 0 0 1-1.889.518 3.3 3.3 0 0 0 1.447-1.817 6.5 6.5 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.32 9.32 0 0 1-6.767-3.429 3.29 3.29 0 0 0 1.018 4.382A3.3 3.3 0 0 1 .64 6.575v.045a3.29 3.29 0 0 0 2.632 3.218 3.2 3.2 0 0 1-.865.115 3 3 0 0 1-.614-.057 3.28 3.28 0 0 0 3.067 2.277A6.6 6.6 0 0 1 .78 13.58a6 6 0 0 1-.78-.045A9.34 9.34 0 0 0 5.026 15"/></svg></a>
<a href="https://briandew.wordpress.com/" target="_blank" rel="noopener" aria-label="WordPress Blog"><svg class="icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"/></svg></a>
</div>
</footer>
<dialog class="cb-lightbox" id="cb-lightbox">
<img id="cb-lightbox-img" alt="">
</dialog>
<script src="scripts/nav.js"></script>
<script>
fetch('date.txt').then(r => r.text()).then(t => {
document.querySelectorAll('.cb_update').forEach(el => el.textContent = t.trim());
});
fetch('files/chartbook_sources.json').then(r => r.json()).then(d => {
const tbody = document.getElementById('cb-sources-table');
for (const r of d.recent) {
const tr = document.createElement('tr');
tr.innerHTML = `<td>${r.name}</td><td>${r.period}</td>`;
tbody.appendChild(tr);
}
const more = document.createElement('tr');
more.innerHTML = `<td style="color:var(--color-text-subtle);border:none;padding-top:2px">…</td><td style="border:none"></td>`;
tbody.appendChild(more);
document.getElementById('cb-st').textContent =
'Also tracks interest rates, equities, commodities, exchange rates, and more.';
});
const lightbox = document.getElementById('cb-lightbox');
const lbImg = document.getElementById('cb-lightbox-img');
function openLightbox(img) {
lbImg.src = img.src;
lbImg.alt = img.alt;
lightbox.showModal();
}
lightbox.addEventListener('click', function(e) {
if (e.target === this) lightbox.close();
});
lightbox.addEventListener('close', function() {
lbImg.removeAttribute('src');
});
</script>
</body>
</html>