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

Actualizado el texto sobre los paises

parent 1ce01909
No related branches found
No related tags found
No related merge requests found
......@@ -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}`);
}
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment