mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Change rendering of marks and drops on circuits.
This commit is contained in:
@@ -324,6 +324,15 @@
|
||||
];
|
||||
Plotly.newPlot(graph, graph_data, { margin: { l:0,r:0,b:0,t:0,pad:4 }, yaxis: { automargin: true }, xaxis: {automargin: true} });
|
||||
|
||||
// Try to hide zeroes
|
||||
for (let i=0; i<entries.y[2].length; i++) {
|
||||
if (entries.y[2][i] == 0) entries.y[2][i] = null;
|
||||
if (entries.y[3][i] == 0) entries.y[3][i] = null;
|
||||
if (entries.y[4][i] == 0) entries.y[4][i] = null;
|
||||
if (entries.y[5][i] == 0) entries.y[5][i] = null;
|
||||
}
|
||||
|
||||
|
||||
graph = document.getElementById("tinMd_" + tin);
|
||||
graph_data = [
|
||||
{x: entries.x[2], y:entries.y[2].reverse(), name: 'Down Drops', mode: 'markers', marker: { size: 4 }},
|
||||
|
||||
Reference in New Issue
Block a user