From 9d79415cd14ace95206a4e3ec4212d76e7b744ee Mon Sep 17 00:00:00 2001 From: frajuar <franciscojavier.juarez@estudiantes.uva.es> Date: Mon, 2 Dec 2024 12:18:12 +0100 Subject: [PATCH] Actualizado el texto sobre los paises --- Js/script.js | 4 +++- index.html | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Js/script.js b/Js/script.js index e8dcfa5..799de22 100644 --- a/Js/script.js +++ b/Js/script.js @@ -127,6 +127,7 @@ function dibujaMapa(seleccionAnno) { .attr("id","texto") .attr("x", centroid[0]) .attr("y", centroid[1] - 10) + .style("font-family","Arial") .style("fill","black") .text(`${d.properties.name}: ${d.properties.value ? d.properties.value.toFixed(2) : 'Sin datos'}`) .style("opacity", 1); @@ -293,10 +294,11 @@ function dibujaGrafico(country,paises){ // TÃtulo svg.append("text") .attr("x", width / 2) - .attr("y", -8) + .attr("y", -5) .attr("text-anchor", "middle") .style("font-size", "18px") .style("font-weight", "bold") + .style("font-family","Arial") .text(`Evolución de los datos para ${country}`); } diff --git a/index.html b/index.html index 15cb179..b0e851b 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,6 @@ Distribución del PIB mundial en cientos de millones de dólares </div> <div id="map"> - <!-- Add a container for the year selector --> <div id="yearSelectorContainer"> </div> </div> -- GitLab