Chore: Simplify bar def.

Co-authored-by: Frank Elsinga <frank@elsinga.de>
pull/4264/head
Nelson Chan 1 month ago committed by GitHub
parent 182f471851
commit d9da6819ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -484,17 +484,10 @@ export default {
x,
y: datapoint.up > 0 && datapoint.avgPing > 0 ? datapoint.maxPing : null,
});
let bar = {
downData.push({
x,
y: datapoint.down,
};
if (datapoint.maintenance) {
bar.y += datapoint.maintenance;
}
downData.push(bar);
y: datapoint.down + (datapoint.maintenance || 0),
});
colorData.push(this.getBarColorForDatapoint(datapoint));
},

Loading…
Cancel
Save