From 2784a0ef1ff47bd2316121c44212f8db467c9120 Mon Sep 17 00:00:00 2001 From: ferngon <fernando.gonzalez.sanz@alumnos.uva.es> Date: Wed, 4 Dec 2024 11:07:43 +0000 Subject: [PATCH] Update 2 files - /xg.js - /xg2.js --- xg.js | 2 +- xg2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xg.js b/xg.js index 69e2e2e..5980e4c 100644 --- a/xg.js +++ b/xg.js @@ -46,7 +46,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") diff --git a/xg2.js b/xg2.js index 11b6e40..8c29ebb 100644 --- a/xg2.js +++ b/xg2.js @@ -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(4, Math.abs(d.xG_diff) / 10); // Escala de intensidad ajustable + const intensity = Math.min(10, 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