diff --git a/Js/script.js b/Js/script.js index e8dcfa540680a56fb9fe78d916bdf5ee5f03627f..799de22c9a4ed91f36ad5fc86d7145a720660b84 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 15cb179be1caa662583e7fa57902da62fd84937b..b0e851b1a320bab24fd2da66fea1f27978bdd7df 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>