Skip to content
Snippets Groups Projects
Commit 9d79415c authored by frajuar's avatar frajuar
Browse files

Actualizado el texto sobre los paises

parent 1ce01909
Branches
No related tags found
No related merge requests found
...@@ -127,6 +127,7 @@ function dibujaMapa(seleccionAnno) { ...@@ -127,6 +127,7 @@ function dibujaMapa(seleccionAnno) {
.attr("id","texto") .attr("id","texto")
.attr("x", centroid[0]) .attr("x", centroid[0])
.attr("y", centroid[1] - 10) .attr("y", centroid[1] - 10)
.style("font-family","Arial")
.style("fill","black") .style("fill","black")
.text(`${d.properties.name}: ${d.properties.value ? d.properties.value.toFixed(2) : 'Sin datos'}`) .text(`${d.properties.name}: ${d.properties.value ? d.properties.value.toFixed(2) : 'Sin datos'}`)
.style("opacity", 1); .style("opacity", 1);
...@@ -293,10 +294,11 @@ function dibujaGrafico(country,paises){ ...@@ -293,10 +294,11 @@ function dibujaGrafico(country,paises){
// Título // Título
svg.append("text") svg.append("text")
.attr("x", width / 2) .attr("x", width / 2)
.attr("y", -8) .attr("y", -5)
.attr("text-anchor", "middle") .attr("text-anchor", "middle")
.style("font-size", "18px") .style("font-size", "18px")
.style("font-weight", "bold") .style("font-weight", "bold")
.style("font-family","Arial")
.text(`Evolución de los datos para ${country}`); .text(`Evolución de los datos para ${country}`);
} }
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
Distribución del PIB mundial en cientos de millones de dólares Distribución del PIB mundial en cientos de millones de dólares
</div> </div>
<div id="map"> <div id="map">
<!-- Add a container for the year selector -->
<div id="yearSelectorContainer"> <div id="yearSelectorContainer">
</div> </div>
</div> </div>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment