Ignore 0 band in quantile display.

This commit is contained in:
Herbert Wolverson 2023-01-12 16:50:39 +00:00
parent 858ed06286
commit 2906c1b8f0
2 changed files with 9 additions and 4 deletions

View File

@ -404,8 +404,8 @@
let up = 0.0 - yUp[i];
let down_slot = Math.floor((down / circuit_info.capacity[0]) * 10.0);
let up_slot = Math.floor((up / circuit_info.capacity[1]) * 10.0);
quantiles[0][down_slot] += 1;
quantiles[1][up_slot] += 1;
if (down_slot > 0) quantiles[0][down_slot] += 1;
if (up_slot > 0) quantiles[1][up_slot] += 1;
}
}

View File

@ -206,8 +206,13 @@
for (let i=0; i<10; i++) {
x1.push(i*10);
x2.push(i*10);
y1.push(tp[i][0]);
y2.push(tp[i][1]);
if (i > 0) {
y1.push(tp[i][0]);
y2.push(tp[i][1]);
} else {
y1.push(0);
y2.push(0);
}
}
let data = [
{x: x1, y:y1, type: 'bar', name: 'Download'},