{
const p = Plot.plot({
grid: true,
width: width,
marginLeft: 50,
marginRight: 70,
y: { label: "bytes", tickFormat: ".1s" },
x: { label: "date" },
marks: [
Plot.ruleY([0]),
Plot.lineY(bRx, {
x: "date",
y: "bytes_rx",
stroke: "green"
}),
Plot.lineY(bTx, {
x: "date",
y: "bytes_tx",
stroke: "steelblue"
}),
genText(bRx, "bytes_rx", "rx"),
genText(bTx, "bytes_tx", "tx")
]
});
return p;
}