Skip to main content
100%

make a bar chart

✓ Published1🌍 Public
Mmanishabehera
Last edited Apr 6, 2021
Created on Apr 6, 2021
Forked from make a face

A horizontal bar chart displays the top five most populated countries using D3 v6, sourced from Worldometers population data. The visualization ranks China, India, the United States, Indonesia, and Pakistan by population, with indigo bars and labeled axes. The code uses `d3.csv` to load data, `d3.scaleLinear` and `d3.scaleBand` for scales, and `d3.axisLeft`/`d3.axisBottom` for ticks. A title is added via SVG text, and the chart renders in an SVG element with explicit width and height.

AI-generated description

this bar diagram represents top 5 populated countries world population

MIT Licensed

Similar vizzes