Skip to main content
100%

Scatterplot

✓ Published0🌍 Public
RRenato Francia Castillo
Last edited Mar 4, 2021
Created on Mar 4, 2021
Forked from Bar Chart

This scatterplot displays the top 10 most populous countries in 2018, based on data from the United Nations World Population Prospects, with country names on the y-axis and population along the x-axis. Each bar’s length is proportional to the population value, formatted in billions using d3.format. The visualization uses d3.csv to load data, d3.scaleLinear for the x-axis with a custom tick format, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom to generate axes with grid lines. The chart is rendered as an SVG with a title and axis label, and bars are styled with a steelblue fill.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes