NEXAS commited on
Commit
e76e775
·
verified ·
1 Parent(s): 29a239e

Update NEW_AI_INFRA.html

Browse files
Files changed (1) hide show
  1. NEW_AI_INFRA.html +843 -832
NEW_AI_INFRA.html CHANGED
@@ -1,833 +1,844 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>AI Infra Ecosystem 2026 | Live Intel</title>
8
- <script src="https://d3js.org/d3.v7.min.js"></script>
9
- <link
10
- href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=JetBrains+Mono:wght@500&display=swap"
11
- rel="stylesheet">
12
- <style>
13
- :root {
14
- --bg: #05070a;
15
- --panel: rgba(15, 23, 42, 0.7);
16
- --accent: #00f2ff;
17
- --accent-glow: rgba(0, 242, 255, 0.3);
18
- --text-main: #f8fafc;
19
- --text-dim: #94a3b8;
20
- --border: rgba(255, 255, 255, 0.1);
21
- }
22
-
23
- body {
24
- margin: 0;
25
- font-family: 'Outfit', sans-serif;
26
- background: var(--bg);
27
- color: var(--text-main);
28
- overflow: hidden;
29
- background-image: radial-gradient(circle at 50% 50%, #0f172a 0%, #05070a 100%);
30
- }
31
-
32
- .header {
33
- display: flex;
34
- justify-content: space-between;
35
- align-items: center;
36
- padding: 15px 30px;
37
- background: rgba(0, 0, 0, 0.4);
38
- backdrop-filter: blur(20px);
39
- border-bottom: 1px solid var(--border);
40
- z-index: 100;
41
- }
42
-
43
- h1 {
44
- margin: 0;
45
- font-size: 1.8em;
46
- font-weight: 700;
47
- background: linear-gradient(135deg, #fff 0%, #00f2ff 100%);
48
- -webkit-background-clip: text;
49
- -webkit-text-fill-color: transparent;
50
- letter-spacing: -0.5px;
51
- }
52
-
53
- .container {
54
- display: flex;
55
- height: calc(100vh - 70px);
56
- }
57
-
58
- #graph-container {
59
- flex: 1;
60
- position: relative;
61
- background: transparent;
62
- }
63
-
64
- .sidebar {
65
- width: 420px;
66
- background: var(--panel);
67
- backdrop-filter: blur(30px);
68
- border-left: 1px solid var(--border);
69
- display: flex;
70
- flex-direction: column;
71
- gap: 20px;
72
- padding: 25px;
73
- overflow-y: auto;
74
- scrollbar-width: thin;
75
- }
76
-
77
- .sidebar::-webkit-scrollbar {
78
- width: 6px;
79
- }
80
-
81
- .sidebar::-webkit-scrollbar-thumb {
82
- background: var(--border);
83
- border-radius: 10px;
84
- }
85
-
86
- .panel {
87
- background: rgba(255, 255, 255, 0.03);
88
- border: 1px solid var(--border);
89
- border-radius: 16px;
90
- padding: 20px;
91
- }
92
-
93
- h2 {
94
- font-size: 0.9em;
95
- text-transform: uppercase;
96
- letter-spacing: 1.5px;
97
- color: var(--text-dim);
98
- margin: 0 0 15px 0;
99
- display: flex;
100
- align-items: center;
101
- gap: 8px;
102
- }
103
-
104
- .settings-panel {
105
- display: flex;
106
- flex-direction: column;
107
- gap: 12px;
108
- margin-bottom: 5px;
109
- }
110
-
111
- input.api-key,
112
- #search {
113
- width: 100%;
114
- box-sizing: border-box;
115
- padding: 12px 16px;
116
- background: #000;
117
- border: 1px solid var(--border);
118
- border-radius: 10px;
119
- color: var(--accent);
120
- font-family: 'JetBrains Mono', monospace;
121
- font-size: 0.85em;
122
- transition: all 0.2s;
123
- }
124
-
125
- input:focus {
126
- outline: none;
127
- border-color: var(--accent);
128
- box-shadow: 0 0 15px var(--accent-glow);
129
- }
130
-
131
- .filter-grid {
132
- display: flex;
133
- flex-wrap: wrap;
134
- gap: 8px;
135
- }
136
-
137
- button.filter {
138
- padding: 6px 12px;
139
- background: rgba(255, 255, 255, 0.05);
140
- border: 1px solid var(--border);
141
- color: var(--text-dim);
142
- border-radius: 8px;
143
- cursor: pointer;
144
- font-size: 0.85em;
145
- transition: all 0.2s;
146
- }
147
-
148
- button.filter.active {
149
- background: var(--accent);
150
- color: #000;
151
- border-color: var(--accent);
152
- font-weight: 600;
153
- }
154
-
155
- .company-list {
156
- list-style: none;
157
- padding: 0;
158
- margin: 0;
159
- display: flex;
160
- flex-direction: column;
161
- gap: 10px;
162
- }
163
-
164
- .company-list li {
165
- padding: 14px;
166
- background: rgba(255, 255, 255, 0.02);
167
- border: 1px solid var(--border);
168
- border-radius: 12px;
169
- cursor: pointer;
170
- display: flex;
171
- justify-content: space-between;
172
- align-items: center;
173
- transition: transform 0.2s, border-color 0.2s;
174
- }
175
-
176
- .company-list li:hover {
177
- transform: translateX(5px);
178
- border-color: var(--accent);
179
- background: rgba(0, 242, 255, 0.05);
180
- }
181
-
182
- .calendar-grid {
183
- display: grid;
184
- grid-template-columns: 1fr;
185
- gap: 10px;
186
- }
187
-
188
- .calendar-day {
189
- background: rgba(255, 255, 255, 0.02);
190
- border: 1px solid var(--border);
191
- border-radius: 12px;
192
- padding: 12px;
193
- }
194
-
195
- .calendar-day.today {
196
- border-color: #ffd700;
197
- background: rgba(255, 215, 0, 0.05);
198
- }
199
-
200
- .calendar-date {
201
- font-weight: 600;
202
- color: var(--accent);
203
- font-size: 0.8em;
204
- margin-bottom: 8px;
205
- opacity: 0.7;
206
- }
207
-
208
- .calendar-item {
209
- padding: 6px 0;
210
- display: flex;
211
- justify-content: space-between;
212
- font-size: 0.9em;
213
- border-bottom: 1px solid rgba(255, 255, 255, 0.05);
214
- }
215
-
216
- .calendar-item:last-child {
217
- border: none;
218
- }
219
-
220
- .node circle {
221
- filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
222
- transition: r 0.3s;
223
- }
224
-
225
- .link {
226
- stroke: #334155;
227
- stroke-opacity: 0.3;
228
- transition: all 0.3s;
229
- }
230
-
231
- .highlight-link {
232
- stroke: var(--accent) !important;
233
- stroke-opacity: 0.8;
234
- stroke-width: 3;
235
- }
236
-
237
- .highlight-node circle {
238
- stroke: #fff;
239
- stroke-width: 4;
240
- filter: drop-shadow(0 0 15px var(--accent));
241
- }
242
-
243
- .tooltip {
244
- position: absolute;
245
- background: rgba(15, 23, 42, 0.95);
246
- backdrop-filter: blur(10px);
247
- border: 1px solid var(--accent);
248
- border-radius: 14px;
249
- padding: 18px;
250
- pointer-events: none;
251
- max-width: 320px;
252
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
253
- z-index: 1000;
254
- }
255
-
256
- .live-price {
257
- font-family: 'JetBrains Mono', monospace;
258
- font-weight: 700;
259
- }
260
-
261
- .price-up {
262
- color: #10b981;
263
- }
264
-
265
- .price-down {
266
- color: #ef4444;
267
- }
268
-
269
- .status-badge {
270
- display: flex;
271
- align-items: center;
272
- gap: 8px;
273
- font-size: 0.75em;
274
- background: #000;
275
- padding: 6px 12px;
276
- border-radius: 20px;
277
- border: 1px solid var(--border);
278
- }
279
-
280
- .status-dot {
281
- width: 8px;
282
- height: 8px;
283
- border-radius: 50%;
284
- position: relative;
285
- }
286
-
287
- .status-dot::after {
288
- content: '';
289
- position: absolute;
290
- inset: -4px;
291
- border-radius: 50%;
292
- background: inherit;
293
- opacity: 0.4;
294
- animation: pulse 2s infinite;
295
- }
296
-
297
- @keyframes pulse {
298
- 0% {
299
- transform: scale(1);
300
- opacity: 0.4;
301
- }
302
-
303
- 100% {
304
- transform: scale(2.5);
305
- opacity: 0;
306
- }
307
- }
308
-
309
- .badge {
310
- font-size: 0.65em;
311
- padding: 2px 8px;
312
- border-radius: 100px;
313
- background: rgba(255, 255, 255, 0.1);
314
- }
315
-
316
- .badge-reported {
317
- background: rgba(16, 185, 129, 0.2);
318
- color: #10b981;
319
- }
320
-
321
- .impact-panel-content {
322
- font-size: 0.9em;
323
- line-height: 1.6;
324
- }
325
-
326
- .data-label {
327
- color: var(--text-dim);
328
- font-size: 0.8em;
329
- margin-bottom: 2px;
330
- }
331
-
332
- .data-value {
333
- font-weight: 600;
334
- margin-bottom: 12px;
335
- }
336
-
337
- /* Custom Scrollbar for sidebars */
338
- ::-webkit-scrollbar {
339
- width: 4px;
340
- }
341
-
342
- ::-webkit-scrollbar-track {
343
- background: transparent;
344
- }
345
-
346
- ::-webkit-scrollbar-thumb {
347
- background: var(--border);
348
- border-radius: 10px;
349
- }
350
- </style>
351
- </head>
352
-
353
- <body>
354
- <div class="header">
355
- <div>
356
- <h1>AI Infra Ecosystem <span style="font-weight:300; opacity:0.6;">2026</span></h1>
357
- <div style="font-size: 0.75em; color: var(--text-dim); margin-top: 4px;">Supply Chain Intelligence • Live
358
- Profit Flow • Institutional Intel</div>
359
- </div>
360
- <div class="status-badge">
361
- <span id="status-dot" class="status-dot status-sim"></span>
362
- <span id="status-text" style="font-family:'JetBrains Mono';">Simulation Mode</span>
363
- <span
364
- style="border-left:1px solid var(--border); margin-left:8px; padding-left:8px; opacity:0.6; font-size:0.9em;">
365
- Init: April 30, 2026 (Manual Sync)
366
- </span>
367
- </div>
368
- </div>
369
-
370
- <div class="container">
371
- <div id="graph-container"></div>
372
-
373
- <div class="sidebar">
374
- <div class="settings-panel">
375
- <input type="password" id="api-key" class="api-key" placeholder="Finnhub API Key..."
376
- value="d7ph5ppr01qlb0a9vvjgd7ph5ppr01qlb0a9vvk0">
377
- <input type="text" id="search" placeholder="Search companies or tickers...">
378
- </div>
379
-
380
- <div class="panel">
381
- <h2><span style="color:var(--accent);">◈</span> Category Filters</h2>
382
- <div class="filter-grid" id="filters"></div>
383
- </div>
384
-
385
- <div class="panel">
386
- <h2><span style="color:#ffd700;">◈</span> Earnings Calendar</h2>
387
- <div id="calendar-panel">
388
- <div class="calendar-grid" id="earnings-calendar"></div>
389
- </div>
390
- </div>
391
-
392
- <div class="panel" id="selection-panel">
393
- <h2 id="selected-name">Select a node to inspect</h2>
394
- <div id="impact-details" class="impact-panel-content"></div>
395
- </div>
396
-
397
- <div class="panel">
398
- <h2><span style="color:var(--accent);">◈</span> Market Overview</h2>
399
- <ul class="company-list" id="company-list"></ul>
400
- </div>
401
- </div>
402
- </div>
403
-
404
- <script>
405
- // ================== EXHAUSTIVE DATA 2026 ==================
406
- const companies = [
407
- // Chips (ASICs, GPUs, CPUs)
408
- { id: "NVDA", name: "NVIDIA", ticker: "NVDA", category: "chip", color: "#ff6b6b", aiExposure: 92, return1y: 52, earnings: "2026-05-20", price: 209.25, change: -1.84 },
409
- { id: "AMD", name: "AMD", ticker: "AMD", category: "chip", color: "#ff6b6b", aiExposure: 68, return1y: 95, earnings: "2026-05-05", price: 337.11, change: 4.3 },
410
- { id: "AVGO", name: "Broadcom", ticker: "AVGO", category: "chip", color: "#ff6b6b", aiExposure: 58, return1y: 78, earnings: "2026-06-03", price: 405.45, change: 1.41 },
411
- { id: "MRVL", name: "Marvell", ticker: "MRVL", category: "chip", color: "#ff6b6b", aiExposure: 65, return1y: 53, earnings: "2026-05-21", price: 156.57, change: 2.18 },
412
- { id: "INTC", name: "Intel", ticker: "INTC", category: "chip", color: "#ff6b6b", aiExposure: 40, return1y: 12, earnings: "2026-04-23", price: 94.75, change: 12.1 },
413
- { id: "ARM", name: "ARM Holdings", ticker: "ARM", category: "chip", color: "#ff6b6b", aiExposure: 85, return1y: 120, earnings: "2026-05-08", price: 201.69, change: 1.53 },
414
-
415
- // Foundry & Equipment
416
- { id: "TSM", name: "TSMC", ticker: "TSM", category: "foundry", color: "#4ecdc4", aiExposure: 60, return1y: 100, earnings: "2026-04-16", price: 393.83, change: 0.38 },
417
- { id: "ASML", name: "ASML", ticker: "ASML", category: "equipment", color: "#4ecdc4", aiExposure: 45, return1y: 94, earnings: "2026-04-15", price: 1394.08, change: 0.69 },
418
- { id: "AMAT", name: "Applied Materials", ticker: "AMAT", category: "equipment", color: "#4ecdc4", aiExposure: 48, return1y: 134, earnings: "2026-05-15", price: 382.59, change: 0.39 },
419
- { id: "LRCX", name: "Lam Research", ticker: "LRCX", category: "equipment", color: "#4ecdc4", aiExposure: 52, return1y: 193, earnings: "2026-04-17", price: 248.75, change: -0.99 },
420
-
421
- // Memory
422
- { id: "MU", name: "Micron", ticker: "MU", category: "memory", color: "#96ceb4", aiExposure: 72, return1y: 305, earnings: "2026-06-24", price: 518.46, change: 2.81 },
423
- { id: "HYNIX", name: "SK Hynix", ticker: "000660.KS", category: "memory", color: "#96ceb4", aiExposure: 78, return1y: 50, earnings: "2026-04-25", price: 1286000.0, change: -0.54 },
424
-
425
- // Storage
426
- { id: "PSTG", name: "Pure Storage", ticker: "PSTG", category: "storage", color: "#fab1a0", aiExposure: 75, return1y: 85, earnings: "2026-05-27", price: 70.31, change: -0.87 },
427
-
428
- // Power & Cooling
429
- { id: "VRT", name: "Vertiv", ticker: "VRT", category: "power", color: "#ffea67", aiExposure: 82, return1y: 238, earnings: "2026-04-22", price: 306.18, change: 0.38 },
430
- { id: "MOD", name: "Modine", ticker: "MOD", category: "cooling", color: "#ffea67", aiExposure: 65, return1y: 180, earnings: "2026-05-22", price: 233.39, change: -1.55 },
431
- { id: "NVT", name: "nVent", ticker: "NVT", category: "cooling", color: "#ffea67", aiExposure: 55, return1y: 95, earnings: "2026-04-30", price: 137.37, change: -0.67 },
432
- { id: "GEV", name: "GE Vernova", ticker: "GEV", category: "energy", color: "#55efc4", aiExposure: 35, return1y: 45, earnings: "2026-04-23", price: 1063.11, change: -2.37 },
433
- { id: "BE", name: "Bloom Energy", ticker: "BE", category: "energy", color: "#55efc4", aiExposure: 65, return1y: 555, earnings: "2026-05-07", price: 287.97, change: 27.21 },
434
- { id: "PWR", name: "Quanta Services", ticker: "PWR", category: "energy", color: "#55efc4", aiExposure: 52, return1y: 116, earnings: "2026-05-02", price: 628.6, change: -0.37 },
435
-
436
- // Networking & Optics
437
- { id: "ANET", name: "Arista", ticker: "ANET", category: "network", color: "#ff9eaa", aiExposure: 75, return1y: 55, earnings: "2026-05-05", price: 168.68, change: 2.05 },
438
- { id: "CSCO", name: "Cisco", ticker: "CSCO", category: "network", color: "#ff9eaa", aiExposure: 30, return1y: 15, earnings: "2026-05-13", price: 89.57, change: 3.12 },
439
- { id: "LITE", name: "Lumentum", ticker: "LITE", category: "network", color: "#ff9eaa", aiExposure: 82, return1y: 102, earnings: "2026-05-05", price: 858.32, change: 8.46 },
440
- { id: "COHR", name: "Coherent", ticker: "COHR", category: "network", color: "#ff9eaa", aiExposure: 68, return1y: 145, earnings: "2026-05-07", price: 304.93, change: 0.32 },
441
- { id: "CRDO", name: "Credo", ticker: "CRDO", category: "network", color: "#ff9eaa", aiExposure: 88, return1y: 180, earnings: "2026-05-28", price: 175.77, change: 5.94 },
442
-
443
- // Servers & Integrators
444
- { id: "SMCI", name: "Supermicro", ticker: "SMCI", category: "server", color: "#a29bfe", aiExposure: 90, return1y: -36, earnings: "2026-05-05", price: 26.32, change: -3.41 },
445
- { id: "DELL", name: "Dell", ticker: "DELL", category: "server", color: "#a29bfe", aiExposure: 55, return1y: 140, earnings: "2026-05-28", price: 205.66, change: -0.13 },
446
- { id: "HPE", name: "HPE", ticker: "HPE", category: "server", color: "#a29bfe", aiExposure: 45, return1y: 42, earnings: "2026-06-02", price: 28.3, change: 1.25 },
447
- { id: "CLS", name: "Celestica", ticker: "CLS", category: "server", color: "#a29bfe", aiExposure: 75, return1y: 238, earnings: "2026-04-23", price: 376.54, change: 4.15 },
448
-
449
- // Hyperscalers
450
- { id: "MSFT", name: "Microsoft", ticker: "MSFT", category: "hyperscaler", color: "#f1c40f", aiExposure: 32, return1y: 25, earnings: "2026-04-29", price: 424.46, change: -1.12 },
451
- { id: "GOOGL", name: "Google", ticker: "GOOGL", category: "hyperscaler", color: "#f1c40f", aiExposure: 28, return1y: 42, earnings: "2026-04-29", price: 349.94, change: 0.05 },
452
- { id: "AMZN", name: "Amazon", ticker: "AMZN", category: "hyperscaler", color: "#f1c40f", aiExposure: 25, return1y: 38, earnings: "2026-04-30", price: 263.04, change: 1.29 },
453
- { id: "META", name: "Meta", ticker: "META", category: "hyperscaler", color: "#f1c40f", aiExposure: 35, return1y: 85, earnings: "2026-04-29", price: 669.12, change: -0.33 },
454
- { id: "ORCL", name: "Oracle", ticker: "ORCL", category: "hyperscaler", color: "#f1c40f", aiExposure: 45, return1y: 65, earnings: "2026-06-15", price: 163.83, change: -1.28 },
455
-
456
- // NSE (India) Hub
457
- { id: "RELIANCE", name: "Reliance Industries", ticker: "RELIANCE.NS", category: "hyperscaler", color: "#f1c40f", aiExposure: 25, return1y: 32, earnings: "2026-04-20", price: 1435.0, change: 0.67, currency: "INR" },
458
- { id: "ADANIENT", name: "Adani Enterprises", ticker: "ADANIENT.NS", category: "hyperscaler", color: "#f1c40f", aiExposure: 20, return1y: 45, earnings: "2026-05-02", price: 2399.8, change: -1.08, currency: "INR" },
459
- { id: "BHARTIARTL", name: "Bharti Airtel", ticker: "BHARTIARTL.NS", category: "hyperscaler", color: "#f1c40f", aiExposure: 18, return1y: 28, earnings: "2026-05-14", price: 1901.0, change: 0.68, currency: "INR" },
460
- { id: "NETWEB", name: "Netweb Tech", ticker: "NETWEB.NS", category: "server", color: "#a29bfe", aiExposure: 85, return1y: 210, earnings: "2026-05-12", price: 4075.6, change: 1.11, currency: "INR" },
461
- { id: "E2E", name: "E2E Networks", ticker: "E2E.NS", category: "server", color: "#a29bfe", aiExposure: 92, return1y: 450, earnings: "2026-05-20", price: 2940.0, change: 0.06, currency: "INR" },
462
- { id: "LT", name: "Larsen & Toubro", ticker: "LT.NS", category: "foundry", color: "#4ecdc4", aiExposure: 15, return1y: 42, earnings: "2026-05-08", price: 4029.0, change: -1.64, currency: "INR" },
463
- { id: "TATACOMM", name: "Tata Comm", ticker: "TATACOMM.NS", category: "network", color: "#ff9eaa", aiExposure: 35, return1y: 55, earnings: "2026-05-10", price: 1581.0, change: -1.32, currency: "INR" },
464
- { id: "ABB_IN", name: "ABB India", ticker: "ABB.NS", category: "power", color: "#ffea67", aiExposure: 22, return1y: 65, earnings: "2026-05-11", price: 7800, change: 0, currency: "INR" }
465
- ];
466
-
467
- const links = [
468
- // Chip Supply
469
- { source: "NVDA", target: "MSFT", type: "supplies" }, { source: "NVDA", target: "GOOGL", type: "supplies" },
470
- { source: "NVDA", target: "AMZN", type: "supplies" }, { source: "NVDA", target: "META", type: "supplies" },
471
- { source: "NVDA", target: "ORCL", type: "supplies" }, { source: "AMD", target: "MSFT", type: "supplies" },
472
- { source: "AMD", target: "META", type: "supplies" }, { source: "AVGO", target: "GOOGL", type: "supplies" },
473
- { source: "AVGO", target: "META", type: "supplies" }, { source: "MRVL", target: "AMZN", type: "supplies" },
474
- { source: "ARM", target: "NVDA", type: "architecture" }, { source: "ARM", target: "MSFT", type: "architecture" },
475
- { source: "INTC", target: "AMZN", type: "foundry" },
476
-
477
- // Foundry/Equipment
478
- { source: "TSM", target: "NVDA", type: "manufactures" }, { source: "TSM", target: "AMD", type: "manufactures" },
479
- { source: "TSM", target: "AVGO", type: "manufactures" }, { source: "TSM", target: "ARM", type: "manufactures" },
480
- { source: "ASML", target: "TSM", type: "equipment" }, { source: "AMAT", target: "TSM", type: "equipment" },
481
- { source: "LRCX", target: "TSM", type: "equipment" },
482
-
483
- // Memory & Storage
484
- { source: "MU", target: "NVDA", type: "supplies" }, { source: "HYNIX", target: "NVDA", type: "supplies" },
485
- { source: "PSTG", target: "MSFT", type: "storage" }, { source: "PSTG", target: "GOOGL", type: "storage" },
486
-
487
- // Power & Cooling
488
- { source: "VRT", target: "NVDA", type: "cooling" }, { source: "VRT", target: "MSFT", type: "cooling" },
489
- { source: "MOD", target: "VRT", type: "components" }, { source: "NVT", target: "SMCI", type: "power" },
490
- { source: "BE", target: "MSFT", type: "energy" }, { source: "PWR", target: "GOOGL", type: "grid" },
491
- { source: "GEV", target: "AMZN", type: "energy" },
492
-
493
- // Networking
494
- { source: "ANET", target: "META", type: "networking" }, { source: "ANET", target: "MSFT", type: "networking" },
495
- { source: "CSCO", target: "ORCL", type: "networking" }, { source: "LITE", target: "ANET", type: "optics" },
496
- { source: "COHR", target: "ANET", type: "optics" }, { source: "CRDO", target: "ANET", type: "interconnect" },
497
-
498
- // Servers
499
- { source: "SMCI", target: "NVDA", type: "integrates" }, { source: "DELL", target: "NVDA", type: "integrates" },
500
- { source: "HPE", target: "NVDA", type: "integrates" }, { source: "CLS", target: "NVDA", type: "integrates" },
501
- { source: "DELL", target: "MSFT", type: "enterprise" }, { source: "HPE", target: "ORCL", type: "enterprise" },
502
-
503
- // NSE Connections
504
- { source: "RELIANCE", target: "NVDA", type: "partnership" }, { source: "RELIANCE", target: "NETWEB", type: "client" },
505
- { source: "ADANIENT", target: "MSFT", type: "jv" }, { source: "LT", target: "ADANIENT", type: "builder" },
506
- { source: "E2E", target: "NVDA", type: "cloud_partner" }, { source: "TATACOMM", target: "TSM", type: "network_infra" },
507
- { source: "ABB_IN", target: "RELIANCE", type: "power_systems" }
508
- ];
509
-
510
- let svg, simulation, nodeGroup, linkGroup, labelGroup, currentFilter = "all";
511
-
512
- function initGraph() {
513
- const container = document.getElementById("graph-container");
514
- const width = container.clientWidth, height = container.clientHeight;
515
-
516
- svg = d3.select("#graph-container").append("svg")
517
- .attr("width", "100%").attr("height", "100%")
518
- .attr("viewBox", [0, 0, width, height]);
519
-
520
- // Zoom setup
521
- const zoom = d3.zoom()
522
- .scaleExtent([0.3, 5])
523
- .on("zoom", (event) => {
524
- g.attr("transform", event.transform);
525
- });
526
-
527
- svg.call(zoom);
528
-
529
- // Add glowing filter for nodes
530
- const defs = svg.append("defs");
531
- const filter = defs.append("filter").attr("id", "glow");
532
- filter.append("feGaussianBlur").attr("stdDeviation", "3.5").attr("result", "coloredBlur");
533
- const feMerge = filter.append("feMerge");
534
- feMerge.append("feMergeNode").attr("in", "coloredBlur");
535
- feMerge.append("feMergeNode").attr("in", "SourceGraphic");
536
-
537
- const g = svg.append("g");
538
-
539
- // Improved simulation for better spacing
540
- simulation = d3.forceSimulation(companies)
541
- .force("link", d3.forceLink(links).id(d => d.id).distance(120))
542
- .force("charge", d3.forceManyBody().strength(-800))
543
- .force("center", d3.forceCenter(width / 2, height / 2))
544
- .force("collision", d3.forceCollide().radius(60));
545
-
546
- linkGroup = g.append("g").selectAll("line")
547
- .data(links).join("line").attr("class", "link").attr("stroke-width", 1.5);
548
-
549
- nodeGroup = g.append("g").selectAll("g")
550
- .data(companies).join("g").attr("class", "node")
551
- .call(d3.drag().on("start", dragstarted).on("drag", dragged).on("end", dragended));
552
-
553
- nodeGroup.append("circle")
554
- .attr("r", d => d.category === "hyperscaler" ? 32 : 24)
555
- .attr("fill", d => `url(#grad-${d.id})`)
556
- .attr("stroke", d => d.color).attr("stroke-width", 2)
557
- .style("filter", "url(#glow)");
558
-
559
- // Add gradients for each node
560
- companies.forEach(c => {
561
- const grad = defs.append("radialGradient").attr("id", `grad-${c.id}`);
562
- grad.append("stop").attr("offset", "0%").attr("stop-color", c.color);
563
- grad.append("stop").attr("offset", "100%").attr("stop-color", d3.color(c.color).darker(2));
564
- });
565
-
566
- labelGroup = g.append("g").selectAll("text")
567
- .data(companies).join("text")
568
- .text(d => d.ticker)
569
- .attr("font-family", "JetBrains Mono")
570
- .attr("font-size", "10px").attr("fill", "#fff")
571
- .attr("text-anchor", "middle").attr("dy", 4).style("font-weight", "700");
572
-
573
- const tooltip = d3.select("body").append("div").attr("class", "tooltip").style("opacity", 0);
574
-
575
- nodeGroup.on("mouseover", (event, d) => {
576
- tooltip.transition().duration(200).style("opacity", 1);
577
- tooltip.html(`
578
- <div style="font-size:1.1em; font-weight:700; margin-bottom:8px; color:var(--accent);">${d.name}</div>
579
- <div style="display:grid; grid-template-columns: 1fr 1fr; gap:10px; font-size:0.85em;">
580
- <div><span style="opacity:0.6;">Ticker</span><br><strong>${d.ticker}</strong></div>
581
- <div><span style="opacity:0.6;">AI Exp</span><br><strong style="color:#ffd700;">${d.aiExposure}%</strong></div>
582
- <div><span style="opacity:0.6;">Price</span><br><strong class="live-price ${d.change >= 0 ? 'price-up' : 'price-down'}">${d.currency === 'INR' ? '₹' : '$'}${d.price.toLocaleString()}</strong></div>
583
- <div><span style="opacity:0.6;">Earnings</span><br><strong>${d.earnings}</strong></div>
584
- </div>
585
- `).style("left", (event.pageX + 20) + "px").style("top", (event.pageY - 20) + "px");
586
- }).on("mouseout", () => tooltip.transition().duration(200).style("opacity", 0))
587
- .on("click", (_, d) => highlightPaths(d));
588
-
589
- simulation.on("tick", () => {
590
- linkGroup.attr("x1", d => d.source.x).attr("y1", d => d.source.y)
591
- .attr("x2", d => d.target.x).attr("y2", d => d.target.y);
592
- nodeGroup.attr("transform", d => `translate(${d.x},${d.y})`);
593
- labelGroup.attr("x", d => d.x).attr("y", d => d.y);
594
- });
595
-
596
- // Double click to reset zoom
597
- svg.on("dblclick.zoom", () => {
598
- svg.transition().duration(750).call(zoom.transform, d3.zoomIdentity);
599
- });
600
-
601
- createFilters();
602
- renderCompanyList();
603
- renderEarningsCalendar();
604
- startStockPulse();
605
-
606
- const initialKey = document.getElementById("api-key").value;
607
- if (initialKey) {
608
- enableLiveFeed(initialKey);
609
- }
610
-
611
- document.getElementById("api-key").addEventListener("change", (e) => {
612
- const key = e.target.value;
613
- if (key) enableLiveFeed(key);
614
- });
615
- }
616
-
617
- function enableLiveFeed(key) {
618
- document.getElementById("status-dot").className = "status-dot status-live";
619
- document.getElementById("status-text").textContent = "Live Feed Connected";
620
- fetchLivePrices(key);
621
- // Refresh live data every 60 seconds
622
- setInterval(() => fetchLivePrices(key), 60000);
623
- }
624
-
625
- function renderEarningsCalendar() {
626
- const calendar = document.getElementById("earnings-calendar");
627
- calendar.innerHTML = "";
628
-
629
- // Group companies by earnings date
630
- const groups = {};
631
- companies.forEach(c => {
632
- if (!groups[c.earnings]) groups[c.earnings] = [];
633
- groups[c.earnings].push(c);
634
- });
635
-
636
- const dates = Object.keys(groups).sort();
637
- const today = new Date().toISOString().split('T')[0];
638
-
639
- dates.forEach(date => {
640
- if (date.startsWith("2026-05") || date === today) {
641
- const dayDiv = document.createElement("div");
642
- dayDiv.className = `calendar-day ${date === today ? 'today' : ''}`;
643
-
644
- const dateStr = new Date(date).toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
645
- let itemsHtml = groups[date].map(c => `
646
- <div class="calendar-item" onclick="highlightPathsById('${c.id}')" style="cursor:pointer">
647
- <span>${c.ticker}</span>
648
- <span class="badge ${date < today ? 'badge-reported' : ''}">${date < today ? '✓' : ''}</span>
649
- </div>
650
- `).join("");
651
-
652
- dayDiv.innerHTML = `
653
- <div class="calendar-date">${dateStr}${date === today ? ' (Today)' : ''}</div>
654
- ${itemsHtml}
655
- `;
656
- calendar.appendChild(dayDiv);
657
- }
658
- });
659
- }
660
-
661
- function highlightPathsById(id) {
662
- const company = companies.find(c => c.id === id);
663
- if (company) highlightPaths(company);
664
- }
665
-
666
- function createFilters() {
667
- const cats = ["all", "chip", "foundry", "equipment", "memory", "storage", "power", "cooling", "energy", "network", "server", "hyperscaler"];
668
- const container = document.getElementById("filters");
669
- container.innerHTML = "";
670
- cats.forEach(cat => {
671
- const btn = document.createElement("button");
672
- btn.className = "filter";
673
- btn.textContent = cat === "all" ? "All" : cat.charAt(0).toUpperCase() + cat.slice(1);
674
- if (cat === "all") btn.classList.add("active");
675
- btn.onclick = () => {
676
- currentFilter = cat;
677
- document.querySelectorAll(".filter").forEach(b => b.classList.remove("active"));
678
- btn.classList.add("active");
679
- filterGraph();
680
- };
681
- container.appendChild(btn);
682
- });
683
- }
684
-
685
- function filterGraph() {
686
- if (currentFilter === "all") {
687
- nodeGroup.style("opacity", 1);
688
- linkGroup.style("opacity", 0.65);
689
- } else {
690
- const visible = new Set(companies.filter(c => c.category === currentFilter).map(c => c.id));
691
- nodeGroup.style("opacity", d => visible.has(d.id) ? 1 : 0.15);
692
- linkGroup.style("opacity", d => (visible.has(d.source.id) && visible.has(d.target.id)) ? 0.65 : 0.08);
693
- }
694
- }
695
-
696
- function highlightPaths(selected) {
697
- document.getElementById("selected-name").innerHTML = `
698
- ${selected.name} (${selected.ticker})
699
- <span class="live-price ${selected.change >= 0 ? 'price-up' : 'price-down'}">
700
- $${selected.price.toFixed(2)} (${selected.change >= 0 ? '+' : ''}${selected.change.toFixed(2)}%)
701
- </span>
702
- `;
703
-
704
- const connected = new Set([selected.id]);
705
- const upstream = new Set();
706
- const downstream = new Set();
707
-
708
- links.forEach(l => {
709
- if (l.source.id === selected.id) { connected.add(l.target.id); downstream.add(l.target.id); }
710
- if (l.target.id === selected.id) { connected.add(l.source.id); upstream.add(l.source.id); }
711
- });
712
-
713
- nodeGroup.selectAll("circle").classed("highlight-node", d => d.id === selected.id || connected.has(d.id));
714
- linkGroup.classed("highlight-link", d =>
715
- (d.source.id === selected.id || d.target.id === selected.id)
716
- );
717
-
718
- const impactHTML = `
719
- <div style="margin-bottom:15px; padding:10px; background:rgba(255,215,0,0.1); border-radius:8px; border:1px solid #ffd70044;">
720
- <strong>AI Revenue Exposure:</strong> <span class="ai-exposure" style="font-size:1.2em;">${selected.aiExposure}%</span>
721
- </div>
722
- <strong>Strategic Profit Flow:</strong><br>
723
- <p style="color:#cbd5e1; margin-top:5px;">${getProfitImpact(selected.id)}</p>
724
-
725
- <div style="display:flex; gap:10px; margin-top:15px;">
726
- <div style="flex:1; background:rgba(0,255,157,0.05); padding:8px; border-radius:6px; border:1px dashed #00ff9d44;">
727
- <small style="color:#00ff9d; display:block;">Upstream Partners</small>
728
- ${Array.from(upstream).slice(0, 3).join(", ") || "N/A"}
729
- </div>
730
- <div style="flex:1; background:rgba(0,212,255,0.05); padding:8px; border-radius:6px; border:1px dashed #00d4ff44;">
731
- <small style="color:#00d4ff; display:block;">Downstream Customers</small>
732
- ${Array.from(downstream).slice(0, 3).join(", ") || "N/A"}
733
- </div>
734
- </div>
735
-
736
- <div style="margin-top:20px; border-top:1px solid #334155; padding-top:15px; display:flex; justify-content:space-between; align-items:center;">
737
- <div>
738
- <small style="color:var(--text-dim); display:block;">Next Earnings</small>
739
- <strong style="color:#ffd700;">${selected.earnings}</strong>
740
- </div>
741
- <a href="https://finance.yahoo.com/quote/${selected.ticker}" target="_blank" style="color:var(--accent); text-decoration:none; font-size:0.8em; padding:6px 12px; border:1px solid var(--accent); border-radius:6px; transition: all 0.2s;">
742
- Yahoo Finance
743
- </a>
744
- </div>
745
- `;
746
- document.getElementById("impact-details").innerHTML = impactHTML;
747
- }
748
-
749
- function getProfitImpact(id) {
750
- const map = {
751
- "NVDA": "Dominant GPU supplier Strongly boosts TSMC (Foundry), MU/HYNIX (Memory), ANET (Networking), VRT/MOD (Cooling), SMCI/DELL (Systems).",
752
- "TSM": "Sole foundry for advanced AI silicon → Benefits from every chip designer (NVDA, AMD, AVGO, ARM, MSFT, AMZN).",
753
- "VRT": "Data center infrastructure leader → Captures liquid cooling demand for H100/Blackwell clusters.",
754
- "ANET": "Ethernet interconnect leader → Gains from Meta/Microsoft cluster expansions as InfiniBand alternative.",
755
- "ARM": "IP for Grace Hopper/Cobalt CPUs → High-efficiency AI compute backbone.",
756
- "ORCL": "NVIDIA cloud partner → Rapidly deploying sovereign AI clouds globally.",
757
- "PSTG": "High-throughput storage → Critical for feeding data to multi-node GPU training clusters.",
758
- "GEV": "Grid infrastructure → Benefits from massive power grid upgrades required by AI hyperscale sites.",
759
- "MOD": "Specialized thermal management → Key component supplier for Vertiv and liquid cooling integrators.",
760
- "MSFT": "Massive AI capex spend ($50B+) → Pulls entire supply chain demand.",
761
- "AMZN": "AWS Trainium/Inferentia buildout Vertical integration strategy.",
762
- "META": "MTIA silicon + massive GPU clusters Key buyer for NVDA and ANET."
763
- };
764
- return map[id] || "Critical component of the AI data center buildout and supply chain loop.";
765
- }
766
-
767
- function renderCompanyList() {
768
- const ul = document.getElementById("company-list");
769
- ul.innerHTML = "";
770
- companies.sort((a, b) => b.aiExposure - a.aiExposure).forEach(c => {
771
- const li = document.createElement("li");
772
- li.innerHTML = `
773
- <div>
774
- <strong>${c.name}</strong> <small style="color:#94a3b8">${c.ticker}</small>
775
- <div style="font-size:0.8em; color:#ffd700">${c.aiExposure}% Exposure</div>
776
- </div>
777
- <div class="live-price ${c.change >= 0 ? 'price-up' : 'price-down'}">
778
- ${c.currency === 'INR' ? '₹' : '$'}${c.price.toLocaleString()}
779
- <div style="font-size:0.7em; text-align:right;">${c.change >= 0 ? '+' : ''}${c.change.toFixed(2)}%</div>
780
- </div>
781
- `;
782
- li.onclick = () => highlightPaths(c);
783
- ul.appendChild(li);
784
- });
785
- }
786
-
787
- function startStockPulse() {
788
- setInterval(() => {
789
- companies.forEach(c => {
790
- const volatility = 0.002; // 0.2% max move per tick
791
- const move = (Math.random() - 0.5) * volatility;
792
- c.price *= (1 + move);
793
- c.change = ((Math.random() * 4) - 2); // Simulating daily change
794
- });
795
- renderCompanyList();
796
- }, 3000);
797
- }
798
-
799
- async function fetchLivePrices(apiKey) {
800
- try {
801
- const promises = companies.slice(0, 10).map(c =>
802
- fetch(`https://finnhub.io/api/v1/quote?symbol=${c.ticker}&token=${apiKey}`)
803
- .then(res => res.json())
804
- .then(data => {
805
- if (data.c) {
806
- c.price = data.c;
807
- c.change = data.dp;
808
- }
809
- })
810
- );
811
- await Promise.all(promises);
812
- renderCompanyList();
813
- } catch (e) {
814
- console.error("Live fetch failed", e);
815
- }
816
- }
817
-
818
- function dragstarted(event) { if (!event.active) simulation.alphaTarget(0.3).restart(); event.subject.fx = event.subject.x; event.subject.fy = event.subject.y; }
819
- function dragged(event) { event.subject.fx = event.x; event.subject.fy = event.y; }
820
- function dragended(event) { if (!event.active) simulation.alphaTarget(0); event.subject.fx = null; event.subject.fy = null; }
821
-
822
- document.getElementById("search").addEventListener("keyup", function () {
823
- const term = this.value.toLowerCase();
824
- document.querySelectorAll("#company-list li").forEach(li => {
825
- li.style.display = li.textContent.toLowerCase().includes(term) ? "" : "none";
826
- });
827
- });
828
-
829
- window.onload = initGraph;
830
- </script>
831
- </body>
832
-
 
 
 
 
 
 
 
 
 
 
 
833
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>AI Infra Ecosystem 2026 | Live Intel</title>
8
+ <script src="https://d3js.org/d3.v7.min.js"></script>
9
+ <link
10
+ href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=JetBrains+Mono:wght@500&display=swap"
11
+ rel="stylesheet">
12
+ <style>
13
+ :root {
14
+ --bg: #05070a;
15
+ --panel: rgba(15, 23, 42, 0.7);
16
+ --accent: #00f2ff;
17
+ --accent-glow: rgba(0, 242, 255, 0.3);
18
+ --text-main: #f8fafc;
19
+ --text-dim: #94a3b8;
20
+ --border: rgba(255, 255, 255, 0.1);
21
+ }
22
+
23
+ body {
24
+ margin: 0;
25
+ font-family: 'Outfit', sans-serif;
26
+ background: var(--bg);
27
+ color: var(--text-main);
28
+ overflow: hidden;
29
+ background-image: radial-gradient(circle at 50% 50%, #0f172a 0%, #05070a 100%);
30
+ }
31
+
32
+ .header {
33
+ display: flex;
34
+ justify-content: space-between;
35
+ align-items: center;
36
+ padding: 15px 30px;
37
+ background: rgba(0, 0, 0, 0.4);
38
+ backdrop-filter: blur(20px);
39
+ border-bottom: 1px solid var(--border);
40
+ z-index: 100;
41
+ }
42
+
43
+ h1 {
44
+ margin: 0;
45
+ font-size: 1.8em;
46
+ font-weight: 700;
47
+ background: linear-gradient(135deg, #fff 0%, #00f2ff 100%);
48
+ -webkit-background-clip: text;
49
+ -webkit-text-fill-color: transparent;
50
+ letter-spacing: -0.5px;
51
+ }
52
+
53
+ .container {
54
+ display: flex;
55
+ height: calc(100vh - 70px);
56
+ }
57
+
58
+ #graph-container {
59
+ flex: 1;
60
+ position: relative;
61
+ background: transparent;
62
+ }
63
+
64
+ .sidebar {
65
+ width: 420px;
66
+ background: var(--panel);
67
+ backdrop-filter: blur(30px);
68
+ border-left: 1px solid var(--border);
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: 20px;
72
+ padding: 25px;
73
+ overflow-y: auto;
74
+ scrollbar-width: thin;
75
+ }
76
+
77
+ .sidebar::-webkit-scrollbar {
78
+ width: 6px;
79
+ }
80
+
81
+ .sidebar::-webkit-scrollbar-thumb {
82
+ background: var(--border);
83
+ border-radius: 10px;
84
+ }
85
+
86
+ .panel {
87
+ background: rgba(255, 255, 255, 0.03);
88
+ border: 1px solid var(--border);
89
+ border-radius: 16px;
90
+ padding: 20px;
91
+ }
92
+
93
+ h2 {
94
+ font-size: 0.9em;
95
+ text-transform: uppercase;
96
+ letter-spacing: 1.5px;
97
+ color: var(--text-dim);
98
+ margin: 0 0 15px 0;
99
+ display: flex;
100
+ align-items: center;
101
+ gap: 8px;
102
+ }
103
+
104
+ .settings-panel {
105
+ display: flex;
106
+ flex-direction: column;
107
+ gap: 12px;
108
+ margin-bottom: 5px;
109
+ }
110
+
111
+ input.api-key,
112
+ #search {
113
+ width: 100%;
114
+ box-sizing: border-box;
115
+ padding: 12px 16px;
116
+ background: #000;
117
+ border: 1px solid var(--border);
118
+ border-radius: 10px;
119
+ color: var(--accent);
120
+ font-family: 'JetBrains Mono', monospace;
121
+ font-size: 0.85em;
122
+ transition: all 0.2s;
123
+ }
124
+
125
+ input:focus {
126
+ outline: none;
127
+ border-color: var(--accent);
128
+ box-shadow: 0 0 15px var(--accent-glow);
129
+ }
130
+
131
+ .filter-grid {
132
+ display: flex;
133
+ flex-wrap: wrap;
134
+ gap: 8px;
135
+ }
136
+
137
+ button.filter {
138
+ padding: 6px 12px;
139
+ background: rgba(255, 255, 255, 0.05);
140
+ border: 1px solid var(--border);
141
+ color: var(--text-dim);
142
+ border-radius: 8px;
143
+ cursor: pointer;
144
+ font-size: 0.85em;
145
+ transition: all 0.2s;
146
+ }
147
+
148
+ button.filter.active {
149
+ background: var(--accent);
150
+ color: #000;
151
+ border-color: var(--accent);
152
+ font-weight: 600;
153
+ }
154
+
155
+ .company-list {
156
+ list-style: none;
157
+ padding: 0;
158
+ margin: 0;
159
+ display: flex;
160
+ flex-direction: column;
161
+ gap: 10px;
162
+ }
163
+
164
+ .company-list li {
165
+ padding: 14px;
166
+ background: rgba(255, 255, 255, 0.02);
167
+ border: 1px solid var(--border);
168
+ border-radius: 12px;
169
+ cursor: pointer;
170
+ display: flex;
171
+ justify-content: space-between;
172
+ align-items: center;
173
+ transition: transform 0.2s, border-color 0.2s;
174
+ }
175
+
176
+ .company-list li:hover {
177
+ transform: translateX(5px);
178
+ border-color: var(--accent);
179
+ background: rgba(0, 242, 255, 0.05);
180
+ }
181
+
182
+ .calendar-grid {
183
+ display: grid;
184
+ grid-template-columns: 1fr;
185
+ gap: 10px;
186
+ }
187
+
188
+ .calendar-day {
189
+ background: rgba(255, 255, 255, 0.02);
190
+ border: 1px solid var(--border);
191
+ border-radius: 12px;
192
+ padding: 12px;
193
+ }
194
+
195
+ .calendar-day.today {
196
+ border-color: #ffd700;
197
+ background: rgba(255, 215, 0, 0.05);
198
+ }
199
+
200
+ .calendar-date {
201
+ font-weight: 600;
202
+ color: var(--accent);
203
+ font-size: 0.8em;
204
+ margin-bottom: 8px;
205
+ opacity: 0.7;
206
+ }
207
+
208
+ .calendar-item {
209
+ padding: 8px 10px;
210
+ margin: 2px 0;
211
+ display: flex;
212
+ justify-content: space-between;
213
+ font-size: 0.9em;
214
+ border-radius: 6px;
215
+ transition: all 0.2s;
216
+ border: 1px solid transparent;
217
+ }
218
+ .calendar-item:hover { background: rgba(255, 255, 255, 0.05); }
219
+ .calendar-item.active {
220
+ background: rgba(0, 242, 255, 0.1);
221
+ border-color: var(--accent);
222
+ box-shadow: 0 0 10px var(--accent-glow);
223
+ }
224
+
225
+ .node circle {
226
+ filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
227
+ transition: r 0.3s;
228
+ }
229
+
230
+ .link {
231
+ stroke: #334155;
232
+ stroke-opacity: 0.3;
233
+ transition: all 0.3s;
234
+ }
235
+
236
+ .highlight-link {
237
+ stroke: var(--accent) !important;
238
+ stroke-opacity: 0.8;
239
+ stroke-width: 3;
240
+ }
241
+
242
+ .highlight-node circle {
243
+ stroke: #fff;
244
+ stroke-width: 4;
245
+ filter: drop-shadow(0 0 15px var(--accent));
246
+ }
247
+
248
+ .tooltip {
249
+ position: absolute;
250
+ background: rgba(15, 23, 42, 0.95);
251
+ backdrop-filter: blur(10px);
252
+ border: 1px solid var(--accent);
253
+ border-radius: 14px;
254
+ padding: 18px;
255
+ pointer-events: none;
256
+ max-width: 320px;
257
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
258
+ z-index: 1000;
259
+ }
260
+
261
+ .live-price {
262
+ font-family: 'JetBrains Mono', monospace;
263
+ font-weight: 700;
264
+ }
265
+
266
+ .price-up {
267
+ color: #10b981;
268
+ }
269
+
270
+ .price-down {
271
+ color: #ef4444;
272
+ }
273
+
274
+ .status-badge {
275
+ display: flex;
276
+ align-items: center;
277
+ gap: 8px;
278
+ font-size: 0.75em;
279
+ background: #000;
280
+ padding: 6px 12px;
281
+ border-radius: 20px;
282
+ border: 1px solid var(--border);
283
+ }
284
+
285
+ .status-dot {
286
+ width: 8px;
287
+ height: 8px;
288
+ border-radius: 50%;
289
+ position: relative;
290
+ }
291
+
292
+ .status-dot::after {
293
+ content: '';
294
+ position: absolute;
295
+ inset: -4px;
296
+ border-radius: 50%;
297
+ background: inherit;
298
+ opacity: 0.4;
299
+ animation: pulse 2s infinite;
300
+ }
301
+
302
+ @keyframes pulse {
303
+ 0% {
304
+ transform: scale(1);
305
+ opacity: 0.4;
306
+ }
307
+
308
+ 100% {
309
+ transform: scale(2.5);
310
+ opacity: 0;
311
+ }
312
+ }
313
+
314
+ .badge {
315
+ font-size: 0.65em;
316
+ padding: 2px 8px;
317
+ border-radius: 100px;
318
+ background: rgba(255, 255, 255, 0.1);
319
+ }
320
+
321
+ .badge-reported {
322
+ background: rgba(16, 185, 129, 0.2);
323
+ color: #10b981;
324
+ }
325
+
326
+ .impact-panel-content {
327
+ font-size: 0.9em;
328
+ line-height: 1.6;
329
+ }
330
+
331
+ .data-label {
332
+ color: var(--text-dim);
333
+ font-size: 0.8em;
334
+ margin-bottom: 2px;
335
+ }
336
+
337
+ .data-value {
338
+ font-weight: 600;
339
+ margin-bottom: 12px;
340
+ }
341
+
342
+ /* Custom Scrollbar for sidebars */
343
+ ::-webkit-scrollbar {
344
+ width: 4px;
345
+ }
346
+
347
+ ::-webkit-scrollbar-track {
348
+ background: transparent;
349
+ }
350
+
351
+ ::-webkit-scrollbar-thumb {
352
+ background: var(--border);
353
+ border-radius: 10px;
354
+ }
355
+ </style>
356
+ </head>
357
+
358
+ <body>
359
+ <div class="header">
360
+ <div>
361
+ <h1>AI Infra Ecosystem <span style="font-weight:300; opacity:0.6;">2026</span></h1>
362
+ <div style="font-size: 0.75em; color: var(--text-dim); margin-top: 4px;">Supply Chain Intelligence • Live
363
+ Profit Flow • Institutional Intel</div>
364
+ </div>
365
+ <div class="status-badge">
366
+ <span id="status-dot" class="status-dot status-sim"></span>
367
+ <span id="status-text" style="font-family:'JetBrains Mono';">Simulation Mode</span>
368
+ <span
369
+ style="border-left:1px solid var(--border); margin-left:8px; padding-left:8px; opacity:0.6; font-size:0.9em;">
370
+ Init: April 30, 2026 (Manual Sync)
371
+ </span>
372
+ </div>
373
+ </div>
374
+
375
+ <div class="container">
376
+ <div id="graph-container"></div>
377
+
378
+ <div class="sidebar">
379
+ <div class="settings-panel">
380
+ <input type="password" id="api-key" class="api-key" placeholder="Finnhub API Key..."
381
+ value="d7ph5ppr01qlb0a9vvjgd7ph5ppr01qlb0a9vvk0">
382
+ <input type="text" id="search" placeholder="Search companies or tickers...">
383
+ </div>
384
+
385
+ <div class="panel">
386
+ <h2><span style="color:var(--accent);">◈</span> Category Filters</h2>
387
+ <div class="filter-grid" id="filters"></div>
388
+ </div>
389
+
390
+ <div class="panel">
391
+ <h2><span style="color:#ffd700;">◈</span> Earnings Calendar</h2>
392
+ <div id="calendar-panel">
393
+ <div class="calendar-grid" id="earnings-calendar"></div>
394
+ </div>
395
+ </div>
396
+
397
+ <div class="panel" id="selection-panel">
398
+ <h2 id="selected-name">Select a node to inspect</h2>
399
+ <div id="impact-details" class="impact-panel-content"></div>
400
+ </div>
401
+
402
+ <div class="panel">
403
+ <h2><span style="color:var(--accent);">◈</span> Market Overview</h2>
404
+ <ul class="company-list" id="company-list"></ul>
405
+ </div>
406
+ </div>
407
+ </div>
408
+
409
+ <script>
410
+ // ================== EXHAUSTIVE DATA 2026 ==================
411
+ const companies = [
412
+ // Chips (ASICs, GPUs, CPUs)
413
+ { id: "NVDA", name: "NVIDIA", ticker: "NVDA", category: "chip", color: "#ff6b6b", aiExposure: 92, return1y: 52, earnings: "2026-05-20", price: 209.25, change: -1.84 },
414
+ { id: "AMD", name: "AMD", ticker: "AMD", category: "chip", color: "#ff6b6b", aiExposure: 68, return1y: 95, earnings: "2026-05-05", price: 337.11, change: 4.3 },
415
+ { id: "AVGO", name: "Broadcom", ticker: "AVGO", category: "chip", color: "#ff6b6b", aiExposure: 58, return1y: 78, earnings: "2026-06-03", price: 405.45, change: 1.41 },
416
+ { id: "MRVL", name: "Marvell", ticker: "MRVL", category: "chip", color: "#ff6b6b", aiExposure: 65, return1y: 53, earnings: "2026-05-21", price: 156.57, change: 2.18 },
417
+ { id: "INTC", name: "Intel", ticker: "INTC", category: "chip", color: "#ff6b6b", aiExposure: 40, return1y: 12, earnings: "2026-04-23", price: 94.75, change: 12.1 },
418
+ { id: "ARM", name: "ARM Holdings", ticker: "ARM", category: "chip", color: "#ff6b6b", aiExposure: 85, return1y: 120, earnings: "2026-05-08", price: 201.69, change: 1.53 },
419
+
420
+ // Foundry & Equipment
421
+ { id: "TSM", name: "TSMC", ticker: "TSM", category: "foundry", color: "#4ecdc4", aiExposure: 60, return1y: 100, earnings: "2026-04-16", price: 393.83, change: 0.38 },
422
+ { id: "ASML", name: "ASML", ticker: "ASML", category: "equipment", color: "#4ecdc4", aiExposure: 45, return1y: 94, earnings: "2026-04-15", price: 1394.08, change: 0.69 },
423
+ { id: "AMAT", name: "Applied Materials", ticker: "AMAT", category: "equipment", color: "#4ecdc4", aiExposure: 48, return1y: 134, earnings: "2026-05-15", price: 382.59, change: 0.39 },
424
+ { id: "LRCX", name: "Lam Research", ticker: "LRCX", category: "equipment", color: "#4ecdc4", aiExposure: 52, return1y: 193, earnings: "2026-04-17", price: 248.75, change: -0.99 },
425
+
426
+ // Memory
427
+ { id: "MU", name: "Micron", ticker: "MU", category: "memory", color: "#96ceb4", aiExposure: 72, return1y: 305, earnings: "2026-06-24", price: 518.46, change: 2.81 },
428
+ { id: "HYNIX", name: "SK Hynix", ticker: "000660.KS", category: "memory", color: "#96ceb4", aiExposure: 78, return1y: 50, earnings: "2026-04-25", price: 1286000.0, change: -0.54 },
429
+
430
+ // Storage
431
+ { id: "PSTG", name: "Pure Storage", ticker: "PSTG", category: "storage", color: "#fab1a0", aiExposure: 75, return1y: 85, earnings: "2026-05-27", price: 70.31, change: -0.87 },
432
+
433
+ // Power & Cooling
434
+ { id: "VRT", name: "Vertiv", ticker: "VRT", category: "power", color: "#ffea67", aiExposure: 82, return1y: 238, earnings: "2026-04-22", price: 306.18, change: 0.38 },
435
+ { id: "MOD", name: "Modine", ticker: "MOD", category: "cooling", color: "#ffea67", aiExposure: 65, return1y: 180, earnings: "2026-05-22", price: 233.39, change: -1.55 },
436
+ { id: "NVT", name: "nVent", ticker: "NVT", category: "cooling", color: "#ffea67", aiExposure: 55, return1y: 95, earnings: "2026-04-30", price: 137.37, change: -0.67 },
437
+ { id: "GEV", name: "GE Vernova", ticker: "GEV", category: "energy", color: "#55efc4", aiExposure: 35, return1y: 45, earnings: "2026-04-23", price: 1063.11, change: -2.37 },
438
+ { id: "BE", name: "Bloom Energy", ticker: "BE", category: "energy", color: "#55efc4", aiExposure: 65, return1y: 555, earnings: "2026-05-07", price: 287.97, change: 27.21 },
439
+ { id: "PWR", name: "Quanta Services", ticker: "PWR", category: "energy", color: "#55efc4", aiExposure: 52, return1y: 116, earnings: "2026-05-02", price: 628.6, change: -0.37 },
440
+
441
+ // Networking & Optics
442
+ { id: "ANET", name: "Arista", ticker: "ANET", category: "network", color: "#ff9eaa", aiExposure: 75, return1y: 55, earnings: "2026-05-05", price: 168.68, change: 2.05 },
443
+ { id: "CSCO", name: "Cisco", ticker: "CSCO", category: "network", color: "#ff9eaa", aiExposure: 30, return1y: 15, earnings: "2026-05-13", price: 89.57, change: 3.12 },
444
+ { id: "LITE", name: "Lumentum", ticker: "LITE", category: "network", color: "#ff9eaa", aiExposure: 82, return1y: 102, earnings: "2026-05-05", price: 858.32, change: 8.46 },
445
+ { id: "COHR", name: "Coherent", ticker: "COHR", category: "network", color: "#ff9eaa", aiExposure: 68, return1y: 145, earnings: "2026-05-07", price: 304.93, change: 0.32 },
446
+ { id: "CRDO", name: "Credo", ticker: "CRDO", category: "network", color: "#ff9eaa", aiExposure: 88, return1y: 180, earnings: "2026-05-28", price: 175.77, change: 5.94 },
447
+
448
+ // Servers & Integrators
449
+ { id: "SMCI", name: "Supermicro", ticker: "SMCI", category: "server", color: "#a29bfe", aiExposure: 90, return1y: -36, earnings: "2026-05-05", price: 26.32, change: -3.41 },
450
+ { id: "DELL", name: "Dell", ticker: "DELL", category: "server", color: "#a29bfe", aiExposure: 55, return1y: 140, earnings: "2026-05-28", price: 205.66, change: -0.13 },
451
+ { id: "HPE", name: "HPE", ticker: "HPE", category: "server", color: "#a29bfe", aiExposure: 45, return1y: 42, earnings: "2026-06-02", price: 28.3, change: 1.25 },
452
+ { id: "CLS", name: "Celestica", ticker: "CLS", category: "server", color: "#a29bfe", aiExposure: 75, return1y: 238, earnings: "2026-04-23", price: 376.54, change: 4.15 },
453
+
454
+ // Hyperscalers
455
+ { id: "MSFT", name: "Microsoft", ticker: "MSFT", category: "hyperscaler", color: "#f1c40f", aiExposure: 32, return1y: 25, earnings: "2026-04-29", price: 424.46, change: -1.12 },
456
+ { id: "GOOGL", name: "Google", ticker: "GOOGL", category: "hyperscaler", color: "#f1c40f", aiExposure: 28, return1y: 42, earnings: "2026-04-29", price: 349.94, change: 0.05 },
457
+ { id: "AMZN", name: "Amazon", ticker: "AMZN", category: "hyperscaler", color: "#f1c40f", aiExposure: 25, return1y: 38, earnings: "2026-04-30", price: 263.04, change: 1.29 },
458
+ { id: "META", name: "Meta", ticker: "META", category: "hyperscaler", color: "#f1c40f", aiExposure: 35, return1y: 85, earnings: "2026-04-29", price: 669.12, change: -0.33 },
459
+ { id: "ORCL", name: "Oracle", ticker: "ORCL", category: "hyperscaler", color: "#f1c40f", aiExposure: 45, return1y: 65, earnings: "2026-06-15", price: 163.83, change: -1.28 },
460
+
461
+ // NSE (India) Hub
462
+ { id: "RELIANCE", name: "Reliance Industries", ticker: "RELIANCE.NS", category: "hyperscaler", color: "#f1c40f", aiExposure: 25, return1y: 32, earnings: "2026-04-20", price: 1432.0, change: 0.46, currency: "INR" },
463
+ { id: "ADANIENT", name: "Adani Enterprises", ticker: "ADANIENT.NS", category: "hyperscaler", color: "#f1c40f", aiExposure: 20, return1y: 45, earnings: "2026-05-02", price: 2396.8, change: -1.2, currency: "INR" },
464
+ { id: "BHARTIARTL", name: "Bharti Airtel", ticker: "BHARTIARTL.NS", category: "hyperscaler", color: "#f1c40f", aiExposure: 18, return1y: 28, earnings: "2026-05-14", price: 1900.2, change: 0.64, currency: "INR" },
465
+ { id: "NETWEB", name: "Netweb Tech", ticker: "NETWEB.NS", category: "server", color: "#a29bfe", aiExposure: 85, return1y: 210, earnings: "2026-05-12", price: 4075.9, change: 1.11, currency: "INR" },
466
+ { id: "E2E", name: "E2E Networks", ticker: "E2E.NS", category: "server", color: "#a29bfe", aiExposure: 92, return1y: 450, earnings: "2026-05-20", price: 2940.5, change: 0.07, currency: "INR" },
467
+ { id: "LT", name: "Larsen & Toubro", ticker: "LT.NS", category: "foundry", color: "#4ecdc4", aiExposure: 15, return1y: 42, earnings: "2026-05-08", price: 4021.9, change: -1.81, currency: "INR" },
468
+ { id: "TATACOMM", name: "Tata Comm", ticker: "TATACOMM.NS", category: "network", color: "#ff9eaa", aiExposure: 35, return1y: 55, earnings: "2026-05-10", price: 1581.4, change: -1.3, currency: "INR" },
469
+ { id: "ABB_IN", name: "ABB India", ticker: "ABB.NS", category: "power", color: "#ffea67", aiExposure: 22, return1y: 65, earnings: "2026-05-11", price: 7800, change: 0, currency: "INR" }
470
+ ];
471
+
472
+ const links = [
473
+ // Chip Supply
474
+ { source: "NVDA", target: "MSFT", type: "supplies" }, { source: "NVDA", target: "GOOGL", type: "supplies" },
475
+ { source: "NVDA", target: "AMZN", type: "supplies" }, { source: "NVDA", target: "META", type: "supplies" },
476
+ { source: "NVDA", target: "ORCL", type: "supplies" }, { source: "AMD", target: "MSFT", type: "supplies" },
477
+ { source: "AMD", target: "META", type: "supplies" }, { source: "AVGO", target: "GOOGL", type: "supplies" },
478
+ { source: "AVGO", target: "META", type: "supplies" }, { source: "MRVL", target: "AMZN", type: "supplies" },
479
+ { source: "ARM", target: "NVDA", type: "architecture" }, { source: "ARM", target: "MSFT", type: "architecture" },
480
+ { source: "INTC", target: "AMZN", type: "foundry" },
481
+
482
+ // Foundry/Equipment
483
+ { source: "TSM", target: "NVDA", type: "manufactures" }, { source: "TSM", target: "AMD", type: "manufactures" },
484
+ { source: "TSM", target: "AVGO", type: "manufactures" }, { source: "TSM", target: "ARM", type: "manufactures" },
485
+ { source: "ASML", target: "TSM", type: "equipment" }, { source: "AMAT", target: "TSM", type: "equipment" },
486
+ { source: "LRCX", target: "TSM", type: "equipment" },
487
+
488
+ // Memory & Storage
489
+ { source: "MU", target: "NVDA", type: "supplies" }, { source: "HYNIX", target: "NVDA", type: "supplies" },
490
+ { source: "PSTG", target: "MSFT", type: "storage" }, { source: "PSTG", target: "GOOGL", type: "storage" },
491
+
492
+ // Power & Cooling
493
+ { source: "VRT", target: "NVDA", type: "cooling" }, { source: "VRT", target: "MSFT", type: "cooling" },
494
+ { source: "MOD", target: "VRT", type: "components" }, { source: "NVT", target: "SMCI", type: "power" },
495
+ { source: "BE", target: "MSFT", type: "energy" }, { source: "PWR", target: "GOOGL", type: "grid" },
496
+ { source: "GEV", target: "AMZN", type: "energy" },
497
+
498
+ // Networking
499
+ { source: "ANET", target: "META", type: "networking" }, { source: "ANET", target: "MSFT", type: "networking" },
500
+ { source: "CSCO", target: "ORCL", type: "networking" }, { source: "LITE", target: "ANET", type: "optics" },
501
+ { source: "COHR", target: "ANET", type: "optics" }, { source: "CRDO", target: "ANET", type: "interconnect" },
502
+
503
+ // Servers
504
+ { source: "SMCI", target: "NVDA", type: "integrates" }, { source: "DELL", target: "NVDA", type: "integrates" },
505
+ { source: "HPE", target: "NVDA", type: "integrates" }, { source: "CLS", target: "NVDA", type: "integrates" },
506
+ { source: "DELL", target: "MSFT", type: "enterprise" }, { source: "HPE", target: "ORCL", type: "enterprise" },
507
+
508
+ // NSE Connections
509
+ { source: "RELIANCE", target: "NVDA", type: "partnership" }, { source: "RELIANCE", target: "NETWEB", type: "client" },
510
+ { source: "ADANIENT", target: "MSFT", type: "jv" }, { source: "LT", target: "ADANIENT", type: "builder" },
511
+ { source: "E2E", target: "NVDA", type: "cloud_partner" }, { source: "TATACOMM", target: "TSM", type: "network_infra" },
512
+ { source: "ABB_IN", target: "RELIANCE", type: "power_systems" }
513
+ ];
514
+
515
+ let svg, simulation, nodeGroup, linkGroup, labelGroup, currentFilter = "all";
516
+
517
+ function initGraph() {
518
+ const container = document.getElementById("graph-container");
519
+ const width = container.clientWidth, height = container.clientHeight;
520
+
521
+ svg = d3.select("#graph-container").append("svg")
522
+ .attr("width", "100%").attr("height", "100%")
523
+ .attr("viewBox", [0, 0, width, height]);
524
+
525
+ // Zoom setup
526
+ const zoom = d3.zoom()
527
+ .scaleExtent([0.3, 5])
528
+ .on("zoom", (event) => {
529
+ g.attr("transform", event.transform);
530
+ });
531
+
532
+ svg.call(zoom);
533
+
534
+ // Add glowing filter for nodes
535
+ const defs = svg.append("defs");
536
+ const filter = defs.append("filter").attr("id", "glow");
537
+ filter.append("feGaussianBlur").attr("stdDeviation", "3.5").attr("result", "coloredBlur");
538
+ const feMerge = filter.append("feMerge");
539
+ feMerge.append("feMergeNode").attr("in", "coloredBlur");
540
+ feMerge.append("feMergeNode").attr("in", "SourceGraphic");
541
+
542
+ const g = svg.append("g");
543
+
544
+ // Improved simulation for better spacing
545
+ simulation = d3.forceSimulation(companies)
546
+ .force("link", d3.forceLink(links).id(d => d.id).distance(120))
547
+ .force("charge", d3.forceManyBody().strength(-800))
548
+ .force("center", d3.forceCenter(width / 2, height / 2))
549
+ .force("collision", d3.forceCollide().radius(60));
550
+
551
+ linkGroup = g.append("g").selectAll("line")
552
+ .data(links).join("line").attr("class", "link").attr("stroke-width", 1.5);
553
+
554
+ nodeGroup = g.append("g").selectAll("g")
555
+ .data(companies).join("g").attr("class", "node")
556
+ .call(d3.drag().on("start", dragstarted).on("drag", dragged).on("end", dragended));
557
+
558
+ nodeGroup.append("circle")
559
+ .attr("r", d => d.category === "hyperscaler" ? 32 : 24)
560
+ .attr("fill", d => `url(#grad-${d.id})`)
561
+ .attr("stroke", d => d.color).attr("stroke-width", 2)
562
+ .style("filter", "url(#glow)");
563
+
564
+ // Add gradients for each node
565
+ companies.forEach(c => {
566
+ const grad = defs.append("radialGradient").attr("id", `grad-${c.id}`);
567
+ grad.append("stop").attr("offset", "0%").attr("stop-color", c.color);
568
+ grad.append("stop").attr("offset", "100%").attr("stop-color", d3.color(c.color).darker(2));
569
+ });
570
+
571
+ labelGroup = g.append("g").selectAll("text")
572
+ .data(companies).join("text")
573
+ .text(d => d.ticker)
574
+ .attr("font-family", "JetBrains Mono")
575
+ .attr("font-size", "10px").attr("fill", "#fff")
576
+ .attr("text-anchor", "middle").attr("dy", 4).style("font-weight", "700");
577
+
578
+ const tooltip = d3.select("body").append("div").attr("class", "tooltip").style("opacity", 0);
579
+
580
+ nodeGroup.on("mouseover", (event, d) => {
581
+ tooltip.transition().duration(200).style("opacity", 1);
582
+ tooltip.html(`
583
+ <div style="font-size:1.1em; font-weight:700; margin-bottom:8px; color:var(--accent);">${d.name}</div>
584
+ <div style="display:grid; grid-template-columns: 1fr 1fr; gap:10px; font-size:0.85em;">
585
+ <div><span style="opacity:0.6;">Ticker</span><br><strong>${d.ticker}</strong></div>
586
+ <div><span style="opacity:0.6;">AI Exp</span><br><strong style="color:#ffd700;">${d.aiExposure}%</strong></div>
587
+ <div><span style="opacity:0.6;">Price</span><br><strong class="live-price ${d.change >= 0 ? 'price-up' : 'price-down'}">${d.currency === 'INR' ? '₹' : '$'}${d.price.toLocaleString()}</strong></div>
588
+ <div><span style="opacity:0.6;">Earnings</span><br><strong>${d.earnings}</strong></div>
589
+ </div>
590
+ `).style("left", (event.pageX + 20) + "px").style("top", (event.pageY - 20) + "px");
591
+ }).on("mouseout", () => tooltip.transition().duration(200).style("opacity", 0))
592
+ .on("click", (_, d) => highlightPaths(d));
593
+
594
+ simulation.on("tick", () => {
595
+ linkGroup.attr("x1", d => d.source.x).attr("y1", d => d.source.y)
596
+ .attr("x2", d => d.target.x).attr("y2", d => d.target.y);
597
+ nodeGroup.attr("transform", d => `translate(${d.x},${d.y})`);
598
+ labelGroup.attr("x", d => d.x).attr("y", d => d.y);
599
+ });
600
+
601
+ // Double click to reset zoom
602
+ svg.on("dblclick.zoom", () => {
603
+ svg.transition().duration(750).call(zoom.transform, d3.zoomIdentity);
604
+ });
605
+
606
+ createFilters();
607
+ renderCompanyList();
608
+ renderEarningsCalendar();
609
+ startStockPulse();
610
+
611
+ const initialKey = document.getElementById("api-key").value;
612
+ if (initialKey) {
613
+ enableLiveFeed(initialKey);
614
+ }
615
+
616
+ document.getElementById("api-key").addEventListener("change", (e) => {
617
+ const key = e.target.value;
618
+ if (key) enableLiveFeed(key);
619
+ });
620
+ }
621
+
622
+ function enableLiveFeed(key) {
623
+ document.getElementById("status-dot").className = "status-dot status-live";
624
+ document.getElementById("status-text").textContent = "Live Feed Connected";
625
+ fetchLivePrices(key);
626
+ // Refresh live data every 60 seconds
627
+ setInterval(() => fetchLivePrices(key), 60000);
628
+ }
629
+
630
+ function renderEarningsCalendar() {
631
+ const calendar = document.getElementById("earnings-calendar");
632
+ calendar.innerHTML = "";
633
+
634
+ // Group companies by earnings date
635
+ const groups = {};
636
+ companies.forEach(c => {
637
+ if (!groups[c.earnings]) groups[c.earnings] = [];
638
+ groups[c.earnings].push(c);
639
+ });
640
+
641
+ const dates = Object.keys(groups).sort();
642
+ const today = new Date().toISOString().split('T')[0];
643
+
644
+ dates.forEach(date => {
645
+ if (date.startsWith("2026-05") || date === today) {
646
+ const dayDiv = document.createElement("div");
647
+ dayDiv.className = `calendar-day ${date === today ? 'today' : ''}`;
648
+
649
+ const dateStr = new Date(date).toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
650
+ let itemsHtml = groups[date].map(c => `
651
+ <div class="calendar-item" data-id="${c.id}" onclick="highlightPathsById('${c.id}')" style="cursor:pointer">
652
+ <span>${c.ticker}</span>
653
+ <span class="badge ${date < today ? 'badge-reported' : ''}">${date < today ? '' : ''}</span>
654
+ </div>
655
+ `).join("");
656
+
657
+ dayDiv.innerHTML = `
658
+ <div class="calendar-date">${dateStr}${date === today ? ' (Today)' : ''}</div>
659
+ ${itemsHtml}
660
+ `;
661
+ calendar.appendChild(dayDiv);
662
+ }
663
+ });
664
+ }
665
+
666
+ function highlightPathsById(id) {
667
+ const company = companies.find(c => c.id === id);
668
+ if (company) highlightPaths(company);
669
+ }
670
+
671
+ function createFilters() {
672
+ const cats = ["all", "chip", "foundry", "equipment", "memory", "storage", "power", "cooling", "energy", "network", "server", "hyperscaler"];
673
+ const container = document.getElementById("filters");
674
+ container.innerHTML = "";
675
+ cats.forEach(cat => {
676
+ const btn = document.createElement("button");
677
+ btn.className = "filter";
678
+ btn.textContent = cat === "all" ? "All" : cat.charAt(0).toUpperCase() + cat.slice(1);
679
+ if (cat === "all") btn.classList.add("active");
680
+ btn.onclick = () => {
681
+ currentFilter = cat;
682
+ document.querySelectorAll(".filter").forEach(b => b.classList.remove("active"));
683
+ btn.classList.add("active");
684
+ filterGraph();
685
+ };
686
+ container.appendChild(btn);
687
+ });
688
+ }
689
+
690
+ function filterGraph() {
691
+ if (currentFilter === "all") {
692
+ nodeGroup.style("opacity", 1);
693
+ linkGroup.style("opacity", 0.65);
694
+ } else {
695
+ const visible = new Set(companies.filter(c => c.category === currentFilter).map(c => c.id));
696
+ nodeGroup.style("opacity", d => visible.has(d.id) ? 1 : 0.15);
697
+ linkGroup.style("opacity", d => (visible.has(d.source.id) && visible.has(d.target.id)) ? 0.65 : 0.08);
698
+ }
699
+ }
700
+
701
+ function highlightPaths(selected) {
702
+ // Update calendar highlights
703
+ document.querySelectorAll(".calendar-item").forEach(item => {
704
+ item.classList.toggle("active", item.getAttribute("data-id") === selected.id);
705
+ });
706
+
707
+ document.getElementById("selected-name").innerHTML = `
708
+ ${selected.name} (${selected.ticker})
709
+ <span class="live-price ${selected.change >= 0 ? 'price-up' : 'price-down'}">
710
+ $${selected.price.toFixed(2)} (${selected.change >= 0 ? '+' : ''}${selected.change.toFixed(2)}%)
711
+ </span>
712
+ `;
713
+
714
+ const connected = new Set([selected.id]);
715
+ const upstream = new Set();
716
+ const downstream = new Set();
717
+
718
+ links.forEach(l => {
719
+ if (l.source.id === selected.id) { connected.add(l.target.id); downstream.add(l.target.id); }
720
+ if (l.target.id === selected.id) { connected.add(l.source.id); upstream.add(l.source.id); }
721
+ });
722
+
723
+ nodeGroup.selectAll("circle").classed("highlight-node", d => d.id === selected.id || connected.has(d.id));
724
+ linkGroup.classed("highlight-link", d =>
725
+ (d.source.id === selected.id || d.target.id === selected.id)
726
+ );
727
+
728
+ const impactHTML = `
729
+ <div style="margin-bottom:15px; padding:10px; background:rgba(255,215,0,0.1); border-radius:8px; border:1px solid #ffd70044;">
730
+ <strong>AI Revenue Exposure:</strong> <span class="ai-exposure" style="font-size:1.2em;">${selected.aiExposure}%</span>
731
+ </div>
732
+ <strong>Strategic Profit Flow:</strong><br>
733
+ <p style="color:#cbd5e1; margin-top:5px;">${getProfitImpact(selected.id)}</p>
734
+
735
+ <div style="display:flex; gap:10px; margin-top:15px;">
736
+ <div style="flex:1; background:rgba(0,255,157,0.05); padding:8px; border-radius:6px; border:1px dashed #00ff9d44;">
737
+ <small style="color:#00ff9d; display:block;">Upstream Partners</small>
738
+ ${Array.from(upstream).slice(0, 3).join(", ") || "N/A"}
739
+ </div>
740
+ <div style="flex:1; background:rgba(0,212,255,0.05); padding:8px; border-radius:6px; border:1px dashed #00d4ff44;">
741
+ <small style="color:#00d4ff; display:block;">Downstream Customers</small>
742
+ ${Array.from(downstream).slice(0, 3).join(", ") || "N/A"}
743
+ </div>
744
+ </div>
745
+
746
+ <div style="margin-top:20px; border-top:1px solid #334155; padding-top:15px; display:flex; justify-content:space-between; align-items:center;">
747
+ <div>
748
+ <small style="color:var(--text-dim); display:block;">Next Earnings</small>
749
+ <strong style="color:#ffd700;">${selected.earnings}</strong>
750
+ </div>
751
+ <a href="https://finance.yahoo.com/quote/${selected.ticker}" target="_blank" style="color:var(--accent); text-decoration:none; font-size:0.8em; padding:6px 12px; border:1px solid var(--accent); border-radius:6px; transition: all 0.2s;">
752
+ Yahoo Finance
753
+ </a>
754
+ </div>
755
+ `;
756
+ document.getElementById("impact-details").innerHTML = impactHTML;
757
+ }
758
+
759
+ function getProfitImpact(id) {
760
+ const map = {
761
+ "NVDA": "<strong>King of Compute:</strong> Supplies Blackwell GPUs to MSFT/META. Relies on TSM (Production) and MU (Memory). <br><strong>Earnings Outlook:</strong> Stock booms if GB200 Blackwell orders exceed current $100B estimates. Price targets are rising on H100 margin persistence.",
762
+ "AMD": "<strong>The Alternative:</strong> Gaining 15% market share from NVDA with MI300X. Linked to MSFT and META as a secondary supplier. <br><strong>Earnings Outlook:</strong> Stock rises if software (ROCm) adoption shows parity with CUDA, enabling Hyperscalers to swap chips.",
763
+ "TSM": "<strong>The Sole Gateway:</strong> Manufactures 100% of advanced AI silicon for NVDA, AMD, and ARM. Bottleneck of the entire ecosystem. <br><strong>Earnings Outlook:</strong> Massive capex spend ($30B+) signals long-term multi-year growth in 2nm nodes.",
764
+ "BE": "<strong>Off-Grid Power:</strong> Solves the 5-year grid wait time for MSFT/AMZN by providing hydrogen fuel cells for instant power. <br><strong>Earnings Outlook:</strong> Stock is a 'Power Play'—booms as soon as grid-constrained data centers sign MW-scale fuel cell contracts.",
765
+ "VRT": "<strong>Thermal Mastery:</strong> The liquid cooling bottleneck. Essential for cooling NVIDIA GB200 racks (120kW+). <br><strong>Earnings Outlook:</strong> High-margin service revenue from retrofitting air-cooled centers for high-density AI heat loads.",
766
+ "NETWEB": "<strong>India's AI Builder:</strong> Local server integrator for NVDA under the Sovereign AI initiative. Key for India's Digital Mission. <br><strong>Earnings Outlook:</strong> Large orders from Indian Govt and private telcos (Jio) for indigenous AI infrastructure.",
767
+ "RELIANCE": "<strong>Sovereign AI Lead:</strong> Building gigawatt-scale data centers for Jio. Partnered with NVDA for an India-specific AI stack. <br><strong>Earnings Outlook:</strong> Valuation expands as Jio transforms from a Telco into an AI/Cloud powerhouse.",
768
+ "ANET": "<strong>Network Spine:</strong> Ethernet leader vs InfiniBand. Key partner for META's 600,000 GPU cluster. <br><strong>Earnings Outlook:</strong> Gains from the 'Ethernet-is-Better' narrative for massive-scale cluster interconnects.",
769
+ "ASML": "<strong>Photolithography Monopolist:</strong> Only company capable of building EUV machines needed for 2nm/3nm AI chips. <br><strong>Earnings Outlook:</strong> Rebound expected as foundries (TSM, INTC) ramp up next-gen fab capacity for 2027.",
770
+ "MU": "<strong>The HBM Bottleneck:</strong> Supplies High Bandwidth Memory (HBM3e) for NVDA GPUs. Memory is the current supply constraint. <br><strong>Earnings Outlook:</strong> Record-high ASPs (Average Selling Prices) for memory will lead to huge profit surprises.",
771
+ "PSTG": "<strong>AI Storage Feed:</strong> Flash storage is 10x faster for feeding data into GPU clusters than legacy drives. <br><strong>Earnings Outlook:</strong> Booms as 'Retrieval-Augmented Generation' (RAG) makes fast storage critical for enterprise AI.",
772
+ "E2E": "<strong>The GPU Cloud:</strong> Providing 'GPU-as-a-Service' to Indian startups. Cloud-native alternative to AWS for cheaper AI training. <br><strong>Earnings Outlook:</strong> Massive subscriber growth from Indian SaaS and AI startups migrating from US-based clouds.",
773
+ "LT": "<strong>The Builder:</strong> Dominant EPC contractor for data center shells and power transmission in India. <br><strong>Earnings Outlook:</strong> Record order book from AdaniConneX and Nxtra projects signaling a multi-year construction boom."
774
+ };
775
+ return map[id] || "<strong>Critical Component:</strong> This company provides essential 'Picks and Shovels' for the AI data center buildout. Its stock price is highly sensitive to the Capex spending announcements of Hyperscalers (MSFT, AMZN, GOOGL).";
776
+ }
777
+
778
+ function renderCompanyList() {
779
+ const ul = document.getElementById("company-list");
780
+ ul.innerHTML = "";
781
+ companies.sort((a, b) => b.aiExposure - a.aiExposure).forEach(c => {
782
+ const li = document.createElement("li");
783
+ li.innerHTML = `
784
+ <div>
785
+ <strong>${c.name}</strong> <small style="color:#94a3b8">${c.ticker}</small>
786
+ <div style="font-size:0.8em; color:#ffd700">${c.aiExposure}% Exposure</div>
787
+ </div>
788
+ <div class="live-price ${c.change >= 0 ? 'price-up' : 'price-down'}">
789
+ ${c.currency === 'INR' ? '₹' : '$'}${c.price.toLocaleString()}
790
+ <div style="font-size:0.7em; text-align:right;">${c.change >= 0 ? '+' : ''}${c.change.toFixed(2)}%</div>
791
+ </div>
792
+ `;
793
+ li.onclick = () => highlightPaths(c);
794
+ ul.appendChild(li);
795
+ });
796
+ }
797
+
798
+ function startStockPulse() {
799
+ setInterval(() => {
800
+ companies.forEach(c => {
801
+ const volatility = 0.002; // 0.2% max move per tick
802
+ const move = (Math.random() - 0.5) * volatility;
803
+ c.price *= (1 + move);
804
+ c.change = ((Math.random() * 4) - 2); // Simulating daily change
805
+ });
806
+ renderCompanyList();
807
+ }, 3000);
808
+ }
809
+
810
+ async function fetchLivePrices(apiKey) {
811
+ try {
812
+ const promises = companies.slice(0, 10).map(c =>
813
+ fetch(`https://finnhub.io/api/v1/quote?symbol=${c.ticker}&token=${apiKey}`)
814
+ .then(res => res.json())
815
+ .then(data => {
816
+ if (data.c) {
817
+ c.price = data.c;
818
+ c.change = data.dp;
819
+ }
820
+ })
821
+ );
822
+ await Promise.all(promises);
823
+ renderCompanyList();
824
+ } catch (e) {
825
+ console.error("Live fetch failed", e);
826
+ }
827
+ }
828
+
829
+ function dragstarted(event) { if (!event.active) simulation.alphaTarget(0.3).restart(); event.subject.fx = event.subject.x; event.subject.fy = event.subject.y; }
830
+ function dragged(event) { event.subject.fx = event.x; event.subject.fy = event.y; }
831
+ function dragended(event) { if (!event.active) simulation.alphaTarget(0); event.subject.fx = null; event.subject.fy = null; }
832
+
833
+ document.getElementById("search").addEventListener("keyup", function () {
834
+ const term = this.value.toLowerCase();
835
+ document.querySelectorAll("#company-list li").forEach(li => {
836
+ li.style.display = li.textContent.toLowerCase().includes(term) ? "" : "none";
837
+ });
838
+ });
839
+
840
+ window.onload = initGraph;
841
+ </script>
842
+ </body>
843
+
844
  </html>