From 290ffcf3d0e7ddf5118eaaeccd612eb2a062a34f Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Mon, 12 Jun 2023 14:22:58 +0200 Subject: [PATCH] fixed x attribute for dash line (mean of PI) on histogram --- caimira/apps/calculator/static/js/report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caimira/apps/calculator/static/js/report.js b/caimira/apps/calculator/static/js/report.js index 49286914..f7795403 100644 --- a/caimira/apps/calculator/static/js/report.js +++ b/caimira/apps/calculator/static/js/report.js @@ -972,9 +972,9 @@ function draw_histogram(svg_id, prob, prob_sd) { .attr("fill", "none") .attr('stroke-width', 2) .attr('stroke-dasharray', (5, 5)) - .attr("x1", x(prob)) + .attr("x1", x(prob/100)) .attr("y1", y_right(1)) - .attr("x2", x(prob)) + .attr("x2", x(prob/100)) .attr("y2", y_right(0)) .attr("stroke", "grey");