Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
CCarlos Montalvo-Ghigliotty
Last edited Dec 8, 2018
Created on Dec 8, 2018
Forked from Making a Bar Chart

This bar chart displays the populations of the ten most populous countries, using 2018 estimates from the United Nations’ World Population Prospects. The visualization loads data from a CSV file with `d3.csv`, then renders horizontal bars using `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis categories. Axes are drawn with `d3.axisLeft` and `d3.axisBottom`, while each rectangle’s width and height are set by the scales. The chart is rendered as SVG, with bars styled through a CSS `fill` rule.

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.

MIT Licensed

Similar vizzes