From d5b740168f29d8eb1e34be362fcaf08d836c7ba8 Mon Sep 17 00:00:00 2001 From: ferngon <fernando.gonzalez.sanz@alumnos.uva.es> Date: Wed, 4 Dec 2024 11:08:55 +0000 Subject: [PATCH] Update file xg2.js --- xg2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xg2.js b/xg2.js index 8c29ebb..cfe285b 100644 --- a/xg2.js +++ b/xg2.js @@ -42,7 +42,7 @@ .style("top", 160 + "px") .style("left", (width + margin.left + margin.right + 160) + "px") .style("width", "260px") - .style("height", "390px") + .style("height", "400px") .style("border", "4px solid black") .style("padding", "10px") .style("background-color", "#f9f9f9") @@ -165,7 +165,7 @@ .attr("width", d => Math.abs(x(d.xG_diff) - x(0))) // Longitud proporcional a xG_diff .attr("height", y.bandwidth()) .attr("fill", d => { - const intensity = Math.min(10, Math.abs(d.xG_diff) / 10); // Escala de intensidad ajustable + const intensity = Math.min(100, Math.abs(d.xG_diff) / 10); // Escala de intensidad ajustable return d.xG_diff > 0 ? d3.interpolateBlues(intensity) // Azul para valores positivos : d3.interpolateReds(intensity); // Rojo para valores negativos -- GitLab