NEXAS commited on
Commit
1227679
Β·
verified Β·
1 Parent(s): 811b700

Upload NEW_AI_INFRA.html

Browse files
Files changed (1) hide show
  1. NEW_AI_INFRA.html +833 -0
NEW_AI_INFRA.html ADDED
@@ -0,0 +1,833 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>