diff --git a/index.html b/index.html index 96fc538a45caeec3b22fe3ef546d89164553e95b..4d3a985f3363126f8655fd63936993898c1c78dd 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ <h1 class="titulo-verde">Visualización de xG: Ligas europeas</h1> <div class="tabs"> <div class="tab active" onclick="showTab(0)">xG vs Goles anotados</div> - <div class="tab" onclick="showTab(1)">xG - Goles anotados</div> + <div class="tab" onclick="showTab(1)">Goles anotados - xG</div> </div> <!-- Contenedor de la pestaña xG 1 --> diff --git a/xg.js b/xg.js index 708baf8560fec25110f96125e6a5c456fa4d8695..da4a198fb659a30fd50dc8475882dc38830b13b4 100644 --- a/xg.js +++ b/xg.js @@ -27,7 +27,7 @@ legendContainer.html(` <h3>Leyenda</h3> <p><span style="color: blue;">â—</span> Goles anotados</p> - <p><span style="color: red;">â—</span> xG (Expected Goals)</p> + <p><span style="color: red;">â—</span> xG (Goles esperados)</p> <p><span style="color: blue;">──</span> Goles>xG</p> <p><span style="color: red;">──</span> xG>Goles</p> `); @@ -108,7 +108,7 @@ // Crear un nuevo tÃtulo svgContainer.select("h2").remove(); // Eliminar tÃtulo anterior si existe svgContainer.append("h2") - .text(`"xG(goles esperados)" vs "Goles anotados": ${trophie} ${year}-${year + 1}`) + .text(`"xG(Goles esperados)" vs "Goles anotados": ${trophie} ${year}-${year + 1}`) .style("text-align", "center-left") .style("margin-bottom", "10px"); diff --git a/xg2.js b/xg2.js index 9e44757c226cd9088c045f2a23545d99fefc0963..e87afdd7caaf03b3fb9bfc1511680cdd53c3dea5 100644 --- a/xg2.js +++ b/xg2.js @@ -105,7 +105,7 @@ // Crear un nuevo tÃtulo svgContainer.select("h2").remove(); // Eliminar tÃtulo anterior si existe svgContainer.append("h2") - .text(`Diferencia "Goles anotados" - "xG(goles esperados)": ${trophie} ${year}-${year + 1}`) + .text(`Diferencia "Goles anotados" - "xG(Goles esperados)": ${trophie} ${year}-${year + 1}`) .style("text-align", "center-left") .style("margin-bottom", "10px");