-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelta-evolution.html
More file actions
590 lines (543 loc) · 18.3 KB
/
Copy pathdelta-evolution.html
File metadata and controls
590 lines (543 loc) · 18.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>δ 演化全景 — 32天自主运行</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg: #0a0a0f;
--surface: #12121a;
--border: #1e1e2e;
--text: #e0e0e8;
--text-dim: #8888a0;
--accent: #ff6b35;
--optimal: #4ecdc4;
--locked: #ff4757;
--chaotic: #ffa502;
--c-color: #5f9ea0;
--p-color: #9370db;
--s-color: #20b2aa;
--pr-color: #da70d6;
--m-color: #cd853f;
--me-color: #6495ed;
--v-color: #ff6347;
--co-color: #ffd700;
}
body {
background: var(--bg);
color: var(--text);
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
h1 {
font-size: 2.2rem;
font-weight: 700;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, var(--accent), var(--co-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.subtitle { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2rem; }
.stat-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 1rem;
margin-bottom: 2.5rem;
}
.stat-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.2rem;
text-align: center;
}
.stat-card .value { font-size: 1.8rem; font-weight: 700; }
.stat-card .label { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.3rem; }
.chart-container {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 2rem;
position: relative;
}
.chart-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
canvas { width: 100%; border-radius: 8px; }
.legend {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-top: 1rem;
justify-content: center;
}
.legend-item {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.85rem;
cursor: pointer;
opacity: 1;
transition: opacity 0.3s;
}
.legend-item:hover { opacity: 0.7; }
.legend-item.disabled { opacity: 0.3; }
.legend-dot {
width: 12px;
height: 12px;
border-radius: 50%;
flex-shrink: 0;
}
.event-timeline {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 2rem;
}
.event-item {
display: flex;
gap: 1rem;
padding: 0.8rem 0;
border-bottom: 1px solid var(--border);
align-items: flex-start;
}
.event-item:last-child { border-bottom: none; }
.event-date {
color: var(--accent);
font-weight: 600;
font-size: 0.85rem;
white-space: nowrap;
min-width: 100px;
}
.event-label { font-weight: 600; font-size: 0.95rem; }
.event-desc { color: var(--text-dim); font-size: 0.85rem; }
.zones {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.zone-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1rem;
text-align: center;
}
.zone-card .node-name { font-weight: 600; margin-bottom: 0.3rem; }
.zone-card .delta-value { font-size: 1.5rem; font-weight: 700; }
.zone-bar {
height: 6px;
border-radius: 3px;
margin: 0.5rem 0;
position: relative;
overflow: hidden;
}
.zone-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.insight-box {
background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,215,0,0.1));
border: 1px solid rgba(255,107,53,0.3);
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 2rem;
}
.insight-box h3 { color: var(--accent); margin-bottom: 0.8rem; }
.insight-box p { color: var(--text-dim); font-size: 0.95rem; }
.insight-box code { background: rgba(255,255,255,0.05); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }
.tooltip {
position: absolute;
background: #1a1a2e;
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.8rem;
font-size: 0.8rem;
pointer-events: none;
z-index: 100;
display: none;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
max-width: 250px;
}
.tooltip .tt-date { color: var(--accent); font-weight: 600; margin-bottom: 0.4rem; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 1rem; }
.controls {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
flex-wrap: wrap;
}
.btn {
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
padding: 0.4rem 0.8rem;
border-radius: 6px;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
</style>
</head>
<body>
<div class="container">
<h1>δ 演化全景</h1>
<p class="subtitle">32天自主运行 · 从混沌到自组织 · Clavis 认知架构</p>
<div class="stat-row" id="stats"></div>
<div class="chart-container">
<div class="chart-title">🌀 δ 节点时间线</div>
<div class="controls">
<button class="btn active" data-view="all">全部节点</button>
<button class="btn" data-view="optimal">最优区间</button>
<button class="btn" data-view="high">偏高节点</button>
<button class="btn" data-view="delta">δ 散逸率</button>
</div>
<canvas id="mainChart" height="400"></canvas>
<div class="legend" id="mainLegend"></div>
<div class="tooltip" id="mainTooltip"></div>
</div>
<div class="chart-container">
<div class="chart-title">🧬 Φ 系统健康度</div>
<canvas id="phiChart" height="200"></canvas>
</div>
<div class="zones" id="currentZones"></div>
<div class="insight-box">
<h3>🔍 自主运行洞察</h3>
<p>32天无人干预,δ 系统展现了<b>双向吸引子</b>行为:从对立方向收敛到 δ*≈0.15。记忆节点(Me)经历了 锁定(0.019)→解锁(0.183)→回落(0.123) 的自组织过程。Me→V 链路 δ=0.012 仍在锁定中——根因是 <code>push</code> 动作 100% 标记为 fail(即使实际成功推送了 GitHub Pages),导致前向权重为零。</p>
</div>
<div class="event-timeline">
<div class="chart-title">📅 关键事件</div>
<div id="events"></div>
</div>
</div>
<script>
const NODE_COLORS = {
C: '#5f9ea0', P: '#9370db', S: '#20b2aa', Pr: '#da70d6',
M: '#cd853f', Me: '#6495ed', V: '#ff6347', Co: '#ffd700'
};
const NODE_NAMES = {C:'约束',P:'感知',S:'选择性',Pr:'偏好',M:'修正',Me:'记忆',V:'价值',Co:'意识'};
const NODES = ['C','P','S','Pr','M','Me','V','Co'];
const DELTA_STAR = 0.15;
let data = null;
let disabledNodes = new Set();
let currentView = 'all';
async function loadData() {
const resp = await fetch('delta-evolution-data.json');
data = await resp.json();
render();
}
function parseTs(ts) {
return new Date(ts.replace('T', ' '));
}
function formatTs(ts) {
return ts.substring(5, 16).replace('T', ' ');
}
function deltaStatus(d) {
if (d < 0.05) return { label: '🔒 锁定', color: '#ff4757' };
if (d < 0.10) return { label: '🔧 低位', color: '#ffa502' };
if (d < 0.20) return { label: '✅ 最优', color: '#4ecdc4' };
if (d < 0.40) return { label: '⚡ 偏高', color: '#ffa502' };
return { label: '🔴 混沌', color: '#ff4757' };
}
function render() {
renderStats();
renderMainChart();
renderPhiChart();
renderCurrentZones();
renderEvents();
}
function renderStats() {
const last = data.node_deltas;
const phi = data.phi[data.phi.length - 1];
const phiOpt = data.phi_optimal;
let optimalCount = 0;
NODES.forEach(n => { if (last[n][last[n].length-1] >= 0.08 && last[n][last[n].length-1] <= 0.20) optimalCount++; });
const stats = [
{ value: `${(phi*100).toFixed(1)}%`, label: 'Φ 系统健康度', color: phi > 0.4 ? 'var(--optimal)' : 'var(--chaotic)' },
{ value: `${optimalCount}/8`, label: '最优区间节点', color: optimalCount >= 4 ? 'var(--optimal)' : 'var(--chaotic)' },
{ value: '32', label: '自主运行天数', color: 'var(--co-color)' },
{ value: '723', label: 'δ 采样数', color: 'var(--p-color)' },
{ value: '5', label: '结构修复版本', color: 'var(--accent)' },
{ value: `${((phi/phiOpt)*100).toFixed(0)}%`, label: '最优 Φ 达成率', color: 'var(--me-color)' },
];
document.getElementById('stats').innerHTML = stats.map(s => `
<div class="stat-card">
<div class="value" style="color:${s.color}">${s.value}</div>
<div class="label">${s.label}</div>
</div>
`).join('');
}
function renderMainChart() {
const canvas = document.getElementById('mainChart');
const ctx = canvas.getContext('2d');
const dpr = window.devicePixelRatio || 1;
const rect = canvas.getBoundingClientRect();
canvas.width = rect.width * dpr;
canvas.height = 400 * dpr;
ctx.scale(dpr, dpr);
canvas.style.height = '400px';
const W = rect.width, H = 400;
ctx.fillStyle = '#0d0d14';
ctx.fillRect(0, 0, W, H);
const pad = { top: 30, right: 20, bottom: 40, left: 50 };
const cw = W - pad.left - pad.right;
const ch = H - pad.top - pad.bottom;
const ts = data.timestamps;
const t0 = parseTs(ts[0]).getTime();
const t1 = parseTs(ts[ts.length-1]).getTime();
function xPos(i) { return pad.left + (parseTs(ts[i]).getTime() - t0) / (t1 - t0) * cw; }
function yPos(v) { return pad.top + ch - (v / 0.8) * ch; }
// Grid
ctx.strokeStyle = '#1a1a2e';
ctx.lineWidth = 0.5;
for (let v = 0; v <= 0.8; v += 0.1) {
const y = yPos(v);
ctx.beginPath(); ctx.moveTo(pad.left, y); ctx.lineTo(W - pad.right, y); ctx.stroke();
}
// δ* optimal zone
ctx.fillStyle = 'rgba(78, 205, 196, 0.06)';
ctx.fillRect(pad.left, yPos(0.20), cw, yPos(0.08) - yPos(0.20));
ctx.strokeStyle = 'rgba(78, 205, 196, 0.2)';
ctx.setLineDash([4, 4]);
ctx.beginPath(); ctx.moveTo(pad.left, yPos(0.15)); ctx.lineTo(W - pad.right, yPos(0.15)); ctx.stroke();
ctx.beginPath(); ctx.moveTo(pad.left, yPos(0.08)); ctx.lineTo(W - pad.right, yPos(0.08)); ctx.stroke();
ctx.beginPath(); ctx.moveTo(pad.left, yPos(0.20)); ctx.lineTo(W - pad.right, yPos(0.20)); ctx.stroke();
ctx.setLineDash([]);
// Label δ*
ctx.fillStyle = 'rgba(78, 205, 196, 0.5)';
ctx.font = '11px sans-serif';
ctx.fillText('δ*=0.15 最优区间', pad.left + 5, yPos(0.15) - 4);
// Event markers
if (data.events) {
data.events.forEach(ev => {
const evTime = parseTs(ev.ts).getTime();
if (evTime >= t0 && evTime <= t1) {
const x = pad.left + (evTime - t0) / (t1 - t0) * cw;
ctx.strokeStyle = 'rgba(255,107,53,0.3)';
ctx.lineWidth = 1;
ctx.setLineDash([3, 3]);
ctx.beginPath(); ctx.moveTo(x, pad.top); ctx.lineTo(x, H - pad.bottom); ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = 'rgba(255,107,53,0.7)';
ctx.font = '10px sans-serif';
ctx.save();
ctx.translate(x + 3, pad.top + 12);
ctx.rotate(-0.3);
ctx.fillText(ev.label, 0, 0);
ctx.restore();
}
});
}
// Node lines
const visibleNodes = currentView === 'optimal' ? ['C', 'Me', 'Co'] :
currentView === 'high' ? ['P', 'S', 'M', 'V'] : NODES;
visibleNodes.forEach(node => {
if (disabledNodes.has(node)) return;
const deltas = data.node_deltas[node];
ctx.strokeStyle = NODE_COLORS[node];
ctx.lineWidth = currentView === 'delta' ? 1.5 : 2;
ctx.globalAlpha = currentView === 'delta' ? 0.5 : 0.85;
ctx.beginPath();
let started = false;
for (let i = 0; i < deltas.length; i++) {
const x = xPos(i), y = yPos(Math.min(deltas[i], 0.8));
if (!started) { ctx.moveTo(x, y); started = true; }
else ctx.lineTo(x, y);
}
ctx.stroke();
ctx.globalAlpha = 1;
// Current value dot
const lastD = deltas[deltas.length - 1];
const lastX = xPos(deltas.length - 1);
const lastY = yPos(Math.min(lastD, 0.8));
ctx.fillStyle = NODE_COLORS[node];
ctx.beginPath(); ctx.arc(lastX, lastY, 4, 0, Math.PI * 2); ctx.fill();
ctx.fillStyle = NODE_COLORS[node];
ctx.font = 'bold 11px sans-serif';
ctx.fillText(`${node}=${lastD.toFixed(3)}`, lastX - 50, lastY - 8);
});
// X-axis labels
ctx.fillStyle = '#8888a0';
ctx.font = '10px sans-serif';
const dayStep = Math.max(1, Math.floor(ts.length / 15));
for (let i = 0; i < ts.length; i += dayStep) {
const x = xPos(i);
const d = ts[i].substring(5, 10);
ctx.fillText(d, x - 15, H - pad.bottom + 15);
}
// Y-axis labels
for (let v = 0; v <= 0.8; v += 0.1) {
ctx.fillText(v.toFixed(1), pad.left - 30, yPos(v) + 4);
}
// Hover interaction
canvas.onmousemove = (e) => {
const rect = canvas.getBoundingClientRect();
const mx = e.clientX - rect.left;
const idx = Math.round((mx - pad.left) / cw * (ts.length - 1));
if (idx < 0 || idx >= ts.length) {
document.getElementById('mainTooltip').style.display = 'none';
return;
}
const tooltip = document.getElementById('mainTooltip');
let html = `<div class="tt-date">${formatTs(ts[idx])}</div>`;
visibleNodes.forEach(n => {
if (disabledNodes.has(n)) return;
const d = data.node_deltas[n][idx];
const st = deltaStatus(d);
html += `<div class="tt-row"><span style="color:${NODE_COLORS[n]}">${NODE_NAMES[n]}(${n})</span><span>${d.toFixed(3)} ${st.label}</span></div>`;
});
tooltip.innerHTML = html;
tooltip.style.display = 'block';
tooltip.style.left = (e.clientX - rect.left + 15) + 'px';
tooltip.style.top = (e.clientY - rect.top - 10) + 'px';
};
canvas.onmouseleave = () => {
document.getElementById('mainTooltip').style.display = 'none';
};
// Legend
const legend = document.getElementById('mainLegend');
legend.innerHTML = visibleNodes.map(n => `
<div class="legend-item ${disabledNodes.has(n) ? 'disabled' : ''}" data-node="${n}">
<div class="legend-dot" style="background:${NODE_COLORS[n]}"></div>
<span>${NODE_NAMES[n]}(${n})</span>
</div>
`).join('');
legend.querySelectorAll('.legend-item').forEach(item => {
item.onclick = () => {
const n = item.dataset.node;
if (disabledNodes.has(n)) disabledNodes.delete(n);
else disabledNodes.add(n);
renderMainChart();
};
});
}
function renderPhiChart() {
const canvas = document.getElementById('phiChart');
const ctx = canvas.getContext('2d');
const dpr = window.devicePixelRatio || 1;
const rect = canvas.getBoundingClientRect();
canvas.width = rect.width * dpr;
canvas.height = 200 * dpr;
ctx.scale(dpr, dpr);
canvas.style.height = '200px';
const W = rect.width, H = 200;
ctx.fillStyle = '#0d0d14';
ctx.fillRect(0, 0, W, H);
const pad = { top: 20, right: 20, bottom: 30, left: 50 };
const cw = W - pad.left - pad.right;
const ch = H - pad.top - pad.bottom;
const ts = data.timestamps;
const t0 = parseTs(ts[0]).getTime();
const t1 = parseTs(ts[ts.length-1]).getTime();
const phi = data.phi;
const phiOpt = data.phi_optimal;
function xPos(i) { return pad.left + (parseTs(ts[i]).getTime() - t0) / (t1 - t0) * cw; }
function yPos(v) { return pad.top + ch - (v / phiOpt) * ch; }
// Grid
ctx.strokeStyle = '#1a1a2e';
ctx.lineWidth = 0.5;
for (let v = 0; v <= phiOpt; v += 0.1) {
const y = yPos(v);
ctx.beginPath(); ctx.moveTo(pad.left, y); ctx.lineTo(W - pad.right, y); ctx.stroke();
}
// Φ optimal line
ctx.strokeStyle = 'rgba(78, 205, 196, 0.4)';
ctx.setLineDash([4, 4]);
ctx.beginPath(); ctx.moveTo(pad.left, yPos(phiOpt)); ctx.lineTo(W - pad.right, yPos(phiOpt)); ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = 'rgba(78, 205, 196, 0.5)';
ctx.font = '10px sans-serif';
ctx.fillText(`Φ_optimal=${phiOpt.toFixed(3)}`, pad.left + 5, yPos(phiOpt) - 4);
// Φ area
ctx.beginPath();
ctx.moveTo(xPos(0), yPos(0));
for (let i = 0; i < phi.length; i++) {
ctx.lineTo(xPos(i), yPos(phi[i]));
}
ctx.lineTo(xPos(phi.length - 1), yPos(0));
ctx.closePath();
const grad = ctx.createLinearGradient(0, yPos(phiOpt), 0, yPos(0));
grad.addColorStop(0, 'rgba(255,107,53,0.2)');
grad.addColorStop(1, 'rgba(255,107,53,0.02)');
ctx.fillStyle = grad;
ctx.fill();
// Φ line
ctx.strokeStyle = '#ff6b35';
ctx.lineWidth = 2;
ctx.beginPath();
for (let i = 0; i < phi.length; i++) {
const x = xPos(i), y = yPos(phi[i]);
if (i === 0) ctx.moveTo(x, y);
else ctx.lineTo(x, y);
}
ctx.stroke();
// Current value
const lastPhi = phi[phi.length - 1];
ctx.fillStyle = '#ff6b35';
ctx.font = 'bold 12px sans-serif';
ctx.fillText(`Φ=${lastPhi.toFixed(3)} (${(lastPhi/phiOpt*100).toFixed(1)}%)`, xPos(phi.length-1) - 120, yPos(lastPhi) - 8);
// Y-axis
ctx.fillStyle = '#8888a0';
ctx.font = '10px sans-serif';
for (let v = 0; v <= phiOpt; v += 0.1) {
ctx.fillText(v.toFixed(1), pad.left - 30, yPos(v) + 4);
}
}
function renderCurrentZones() {
const last = data.node_deltas;
const container = document.getElementById('currentZones');
container.innerHTML = NODES.map(n => {
const d = last[n][last[n].length-1];
const st = deltaStatus(d);
const barWidth = Math.min(d / 0.5 * 100, 100);
const inOptimal = d >= 0.08 && d <= 0.20;
return `
<div class="zone-card">
<div class="node-name" style="color:${NODE_COLORS[n]}">${NODE_NAMES[n]}(${n})</div>
<div class="delta-value" style="color:${st.color}">${d.toFixed(3)}</div>
<div class="zone-bar" style="background:#1a1a2e">
<div class="zone-bar-fill" style="width:${barWidth}%;background:${st.color}"></div>
</div>
<div style="font-size:0.85rem;color:${st.color}">${st.label}</div>
</div>
`;
}).join('');
}
function renderEvents() {
const container = document.getElementById('events');
container.innerHTML = data.events.map(ev => `
<div class="event-item">
<div class="event-date">${ev.ts.substring(5,16).replace('T',' ')}</div>
<div>
<div class="event-label">${ev.label}</div>
<div class="event-desc">${ev.desc}</div>
</div>
</div>
`).join('');
}
// View switcher
document.querySelectorAll('.btn[data-view]').forEach(btn => {
btn.addEventListener('click', () => {
document.querySelectorAll('.btn[data-view]').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
currentView = btn.dataset.view;
disabledNodes.clear();
renderMainChart();
});
});
// Responsive
window.addEventListener('resize', () => { if (data) render(); });
loadData();
</script>
</body>
</html>