From 526ba3715156e44fbac892e45afa5ef0ad05579b Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 11 Feb 2020 10:10:03 +0100 Subject: [PATCH] minor visual change in threshold graph --- pandora_console/include/javascript/pandora.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js index a3e1476ebd..9a9c8bcba0 100644 --- a/pandora_console/include/javascript/pandora.js +++ b/pandora_console/include/javascript/pandora.js @@ -1523,7 +1523,7 @@ function paint_graph_status( var width_x = 101; var height_x = 50; - var legend_width_x = 190; + var legend_width_x = 135; var legend_height_x = 80; svg @@ -1626,7 +1626,7 @@ function paint_graph_status( .attr("id", "status_rect") .attr("x", width_x) .attr("y", height_x) - .attr("width", 75) + .attr("width", 20) .attr("height", 200) .style("fill", "#82B92E"); @@ -1643,7 +1643,7 @@ function paint_graph_status( "y", height_x + (range_max - min_w) * position - (max_w - min_w) * position ) - .attr("width", 75) + .attr("width", 20) .attr("height", (max_w - min_w) * position) .style("fill", "#ffd731"); } else { @@ -1655,7 +1655,7 @@ function paint_graph_status( .attr("id", "warning_rect") .attr("x", width_x) .attr("y", height_x + 200 - (min_w - range_min) * position) - .attr("width", 75) + .attr("width", 20) .attr("height", (min_w - range_min) * position) .style("fill", "#ffd731"); @@ -1667,7 +1667,7 @@ function paint_graph_status( .attr("id", "warning_inverse_rect") .attr("x", width_x) .attr("y", height_x) - .attr("width", 75) + .attr("width", 20) .attr( "height", (range_max - min_w) * position - (max_w - min_w) * position @@ -1687,7 +1687,7 @@ function paint_graph_status( "y", height_x + (range_max - min_c) * position - (max_c - min_c) * position ) - .attr("width", 75) + .attr("width", 20) .attr("height", (max_c - min_c) * position) .style("fill", "#e63c52"); } else { @@ -1699,7 +1699,7 @@ function paint_graph_status( .attr("id", "critical_rect") .attr("x", width_x) .attr("y", height_x + 200 - (min_c - range_min) * position) - .attr("width", 75) + .attr("width", 20) .attr("height", (min_c - range_min) * position) .style("fill", "#e63c52"); svg @@ -1710,7 +1710,7 @@ function paint_graph_status( .attr("id", "critical_inverse_rect") .attr("x", width_x) .attr("y", height_x) - .attr("width", 75) + .attr("width", 20) .attr( "height", (range_max - min_c) * position - (max_c - min_c) * position