Skip to main content
100%

Making a simple bar chart

✓ Published1🌍 Public
AAkshata Chandra
Last edited Jul 8, 2019
Created on Jul 8, 2019

This bar chart displays the 2020 populations of the world’s most populous countries, with horizontal bars sorted by country name. The visualization uses d3.csv to load the data, d3.scaleLinear for the x-axis, and d3.scaleBand for the y-axis, rendering SVG rectangles with a steelblue fill. Axes are added via d3.axisLeft and d3.axisBottom, while the chart is drawn inside a margin-defined group.

AI-generated description
MIT Licensed

Similar vizzes