Población / Km2
✓ Published1🌍 Public
This scatter plot displays the relationship between population and area for each country, with each purple circle representing a nation. The chart uses a log scale on both axes to effectively visualize the wide range of values, from tiny territories to large nations. Built with D3 v5, the visualization reads from a CSV file and renders as an SVG, using `scaleLinear` for both axes and `axisLeft` and `axisBottom` to generate the gridlines and tick marks. The code applies custom formatting to abbreviate large numbers, such as converting billions to "B", and includes axis labels and a title for clarity.
AI-generated descriptionMIT Licensed