修改95带宽
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user