From 62ea9c7038fbca70e07ce29e4b8d25cb34aeebd4 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Mon, 20 Mar 2023 16:43:09 +0000 Subject: [PATCH] Backport markers mode for drops graphs Tins display markers rather than lines for drops graphs. --- src/rust/lqos_node_manager/static/circuit_queue.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rust/lqos_node_manager/static/circuit_queue.html b/src/rust/lqos_node_manager/static/circuit_queue.html index 984829da..54968ca8 100644 --- a/src/rust/lqos_node_manager/static/circuit_queue.html +++ b/src/rust/lqos_node_manager/static/circuit_queue.html @@ -310,10 +310,10 @@ graph = document.getElementById("tinMd_" + tin); graph_data = [ - {x: entries.x[2], y:entries.y[2].reverse(), name: 'Down Drops', type: 'scatter'}, - {x: entries.x[3], y:entries.y[3].reverse(), name: 'Down Marks', type: 'scatter'}, - {x: entries.x[4], y:entries.y[4].reverse(), name: 'Up Drops', type: 'scatter'}, - {x: entries.x[5], y:entries.y[5].reverse(), name: 'Up Marks', type: 'scatter'}, + {x: entries.x[2], y:entries.y[2].reverse(), name: 'Down Drops', mode: 'markers', marker: { size: 4 }}, + {x: entries.x[3], y:entries.y[3].reverse(), name: 'Down Marks', mode: 'markers', marker: { size: 4 }}, + {x: entries.x[4], y:entries.y[4].reverse(), name: 'Up Drops', mode: 'markers', marker: { size: 4 }}, + {x: entries.x[5], y:entries.y[5].reverse(), name: 'Up Marks', mode: 'markers', marker: { size: 4 }}, ]; Plotly.newPlot(graph, graph_data, { margin: { l:0,r:0,b:0,t:0,pad:4 }, yaxis: { automargin: true }, xaxis: {automargin: true} });