diff --git a/src/rust/lqosd/src/node_manager/js_build/src/all_tree_sankey.js b/src/rust/lqosd/src/node_manager/js_build/src/all_tree_sankey.js index 46ed2881..91876805 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/all_tree_sankey.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/all_tree_sankey.js @@ -98,7 +98,7 @@ function start() { fontSize: 6, color: "#999" }; - if (redact) label.fontSize = 0; + if (redact) label.backgroundColor = label.color; nodes.push({ name: data[i][1].name, diff --git a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_sankey.js b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_sankey.js index 45819201..a93f621d 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_sankey.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_sankey.js @@ -1,6 +1,5 @@ import {BaseDashlet} from "./base_dashlet"; -import {clearDiv, simpleRowHtml, theading} from "../helpers/builders"; -import {formatThroughput, formatRetransmit, formatCakeStat, lerpGreenToRedViaOrange} from "../helpers/scaling"; +import {lerpGreenToRedViaOrange} from "../helpers/scaling"; import {DashboardGraph} from "../graphs/dashboard_graph"; import {isRedacted} from "../helpers/redact"; @@ -92,7 +91,7 @@ export class TopTreeSankey extends BaseDashlet { fontSize: 9, color: "#999" }; - if (redact) label.fontSize = 0; + if (redact) label.backgroundColor = label.color; let name = r[1].name; let bytes = r[1].current_throughput[0]; diff --git a/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js b/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js index fddcbbe4..757bd539 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js @@ -1,5 +1,6 @@ import {DashboardGraph} from "./dashboard_graph"; import {lerpColor, lerpGreenToRedViaOrange, scaleNumber} from "../helpers/scaling"; +import {isRedacted} from "../helpers/redact"; export class TopNSankey extends DashboardGraph { constructor(id) { @@ -59,6 +60,7 @@ export class TopNSankey extends DashboardGraph { fontSize: 9, color: "#999" }; + if (isRedacted()) label.backgroundColor = label.color; let name = r.ip_address+ " (" + scaleNumber(r.bits_per_second.down, 0) + ", " + r.tcp_retransmits.down + "/" + r.tcp_retransmits.up + ")"; let bytes = r.bits_per_second.down / 8;