diff --git a/xg2.js b/xg2.js index e09086554e9295e33726b52ae5bd1e57c93277ce..073874cb1a96568b77436a784ea69ad2bb154799 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() {