Skip to main content
100%

4_Making a Bar Chart

✓ Published1🌍 Public
FFMajid-ops
Last edited Nov 15, 2020
Created on Nov 13, 2020

This bar chart displays the population of the ten most populated countries, using data from the United Nations. The chart encodes population on the x-axis and country names on the y-axis, with steel-blue bars separated by padding. Built with d3.csv, d3.scaleLinear, and d3.scaleBand, it renders as an SVG and positions axes using d3.axisLeft and d3.axisBottom. The code loads data from a CSV file, multiplies population values by 1,000, and appends rectangle elements for each bar within a translated group.

AI-generated description

This bar chart shows population of the top 10 most populated countries. link United Nation

MIT Licensed

Similar vizzes