Skip to content

Commit 1cdd013

Browse files
v2.3.1: bimodal-RTT readability — thinner median trace, visible second band, defensive sort
- targets behind multi-IP DNS (e.g. APNs) flip between endpoints; the per-round median legitimately alternates between two levels. Rendering now keeps it readable: halo 7px->3px, main line 1.3px, deviation fade floor raised so the far mode stays visible (opacity 0.25 min, deviation scale to 1.0) - rounds sorted by time before render (defense in depth)
1 parent f74fc61 commit 1cdd013

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

static/index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
const smoke = [], median = [], lossBars = [], burstPts = [];
176176
let sent = 0, recv = 0, bursts = 0;
177177
const pool = [];
178+
rounds.sort((a, b) => a.t - b.t);
178179
const roundInfo = {};
179180
rounds.forEach(r => {
180181
const ts = r.t * 1000;
@@ -245,16 +246,16 @@
245246
}
246247
},
247248
// 荧光束渐变:贴线的样本 = 炽亮核心,散开的样本渐冷渐暗 —— 渐变即信息
248-
visualMap: { show: false, type: 'continuous', dimension: 2, min: 0, max: 0.5,
249+
visualMap: { show: false, type: 'continuous', dimension: 2, min: 0, max: 1.0,
249250
seriesIndex: 0,
250251
inRange: { color: [cssv('--smoke-hot'), cssv('--smoke-mid'), cssv('--smoke-cool')],
251-
opacity: [0.5, 0.10] } },
252+
opacity: [0.55, 0.25] } },
252253
series: [
253254
{ type: 'scatter', data: smoke, symbolSize: 2.4, silent: true, progressive: 4000 },
254255
{ type: 'line', data: median, showSymbol: false, silent: true, z: 4,
255-
lineStyle: { color: phos, width: 7, opacity: 0.10 } },
256+
lineStyle: { color: phos, width: 3, opacity: 0.08 } },
256257
{ type: 'line', data: median, showSymbol: false,
257-
lineStyle: { color: phos, width: 1.6, shadowColor: phos, shadowBlur: +cssv('--glow') * 2 }, z: 5 },
258+
lineStyle: { color: phos, width: 1.3, shadowColor: phos, shadowBlur: +cssv('--glow') * 2 }, z: 5 },
258259
{ type: 'bar', yAxisIndex: 1, data: lossBars, barMaxWidth: 3,
259260
itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1,
260261
[{ offset: 0, color: cssv('--alert') }, { offset: 1, color: cssv('--lossbar') }]) } },

0 commit comments

Comments
 (0)