修改95带宽

This commit is contained in:
CN-JS-HuiBai
2026-04-04 21:56:28 +08:00
parent 47d25af469
commit 1f4bdb7970
3 changed files with 16 additions and 8 deletions

View File

@@ -9,6 +9,7 @@ class AreaChart {
this.data = { timestamps: [], rx: [], tx: [] };
this.animProgress = 0;
this.animFrame = null;
this.showP95 = true;
this.dpr = window.devicePixelRatio || 1;
this.padding = { top: 20, right: 16, bottom: 32, left: 56 };
@@ -187,7 +188,7 @@ class AreaChart {
'#06b6d4', len);
// Draw P95 line
if (this.p95 && this.animProgress === 1) {
if (this.showP95 && this.p95 && this.animProgress === 1) {
const p95Y = getY(this.p95);
// Only draw if within visible range
if (p95Y >= p.top && p95Y <= p.top + chartH) {