Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Población / Km2

Public visualization

Población / Km2

0 stars1🌍 Public
Jjeronimoek
Last edited May 11, 2020
Created on May 10, 2020

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 description

Comments

Sign in to join the discussion.

MIT Licensed