Skip to main content
100%

Making a Bar graph

✓ Published2🌍 Public
PPraneeth Varma
Last edited May 7, 2020
Created on May 7, 2020
Forked from Making a Bar graph

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 description

It is the data of top ten populous countries in the world, according to the report by UN

MIT Licensed

Similar vizzes