This horizontal bar chart displays the populations of the world’s ten most populous countries, based on 2018 United Nations estimates. The visualization uses D3 v5 with SVG rendering, employing `d3.scaleLinear` for bar widths and `d3.scaleBand` for category spacing. Axes are customized with `d3.axisLeft` and `d3.axisBottom`, applying tick formatting via `d3.format` to abbreviate large numbers in billions. The chart includes a title, axis labels, and grid lines, with data loaded from a CSV file.
AI-generated descriptionThis bar chart shows population of the 10 most populous countries. The data comes from the year 2018 estimate in [United Nations: World Population Prospects 2017] (https://population.un.org/wpp/Download/Standard/Population/)
FORMATTING NUMBERS http://bl.ocks.org/zanarmstrong/05c1e95bf7aa16c4768e
REMOVING UNNECESSARY LINES ADDING TITLE ADDING AXIS LABELS MAKING GRID LINES
colors: https://github.com/amycesal/dataviz-style-guide/blob/master/Sunlight-StyleGuide-DataViz.pdf
Comments
Sign in to join the discussion.