Skip to content
Snippets Groups Projects
Commit c7166900 authored by ferngon's avatar ferngon
Browse files

Update file xg2.js

parent ce162866
No related branches found
No related tags found
No related merge requests found
Pipeline #13005 passed
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment