From 70a5cb172fbcfb23746d6fe3082e01e2138a6843 Mon Sep 17 00:00:00 2001 From: ferngon <fernando.gonzalez.sanz@alumnos.uva.es> Date: Wed, 4 Dec 2024 11:11:31 +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 e25cdda..566dd67 100644 --- a/xg2.js +++ b/xg2.js @@ -167,8 +167,8 @@ .attr("fill", d => { const intensity = Math.min(1, Math.abs(d.xG_diff) / 10); // Escala de intensidad ajustable return d.xG_diff > 0 - ? d3.interpolateBlues(intensity*1.5) // Azul para valores positivos - : d3.interpolateReds(intensity*1.5); // Rojo para valores negativos + ? d3.interpolateBlues(intensity*10) // Azul para valores positivos + : d3.interpolateReds(intensity*10); // Rojo para valores negativos }) .on("click", function(event, d) { infoContainer2 -- GitLab