From c7166900df4ef01308fff1f8b97a6678a44f0587 Mon Sep 17 00:00:00 2001 From: ferngon <fernando.gonzalez.sanz@alumnos.uva.es> Date: Thu, 12 Dec 2024 20:31:46 +0000 Subject: [PATCH] Update file xg2.js --- xg2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xg2.js b/xg2.js index e090865..073874c 100644 --- a/xg2.js +++ b/xg2.js @@ -16,7 +16,7 @@ .attr("id", "legendContainer") .style("position", "absolute") .style("top", "160px") - .style("left", "850px") + .style("left", "880px") .style("width", "80px") .style("height", "300px") .style("border", "2px solid black") @@ -40,7 +40,7 @@ .attr("id", "infoContainer") .style("position", "absolute") .style("top", 160 + "px") - .style("left", (width + margin.left + margin.right + 160) + "px") + .style("left", (width + margin.left + margin.right + 190) + "px") .style("width", "260px") .style("height", "400px") .style("border", "4px solid black") @@ -64,7 +64,7 @@ console.log("Datos procesados:", data); // Depuración: verificar datos procesados // Inicializar con valores por defecto - updateGraph2(2014, "La_liga"); + updateGraph2(+d3.select("#yearSelector2").node().value, d3.select("#trophieSelector2").node().value); // Evento para cambiar el gráfico cuando se selecciona un año d3.select("#yearSelector2").on("change", function() { -- GitLab