Making a Bar graph
✓ Published2🌍 Public
This bar chart displays the ten most populous countries in the world according to UN data, with horizontal bars ranked by population. The visualization uses D3 v5’s scaleLinear, scaleBand, axisBottom, and axisLeft to map population values to bar lengths and country names to rows. Population figures are formatted using the d3.format function with a custom replace for billions. The chart draws SVG rectangles with a steelblue fill, includes gridlines via tickSize, and labels the x-axis “Population.”
AI-generated descriptionIt is the data of top ten populous countries in the world, according to the report by UN
MIT Licensed