Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
JJMason88
Last edited Jun 4, 2019
Created on Jun 4, 2019
Forked from Making a Bar Chart

This horizontal bar chart displays the populations of the world’s ten most populous countries, with China and India leading by a wide margin. The visualization uses D3 v5 to load data from a CSV file, scaling population values linearly along the x-axis and country names along a band scale on the y-axis. SVG rectangles are appended and sized using D3’s scaleLinear and scaleBand, while axisLeft and axisBottom generate the labeled axes. The chart is styled with a steelblue fill for the bars.

AI-generated description

This is a bar chart to display the world's most populous countries.

MIT Licensed

Similar vizzes