Make a Bar Chart with D3.js
✓ Published1🌍 Public
A horizontal bar chart displays population figures for the five most populous countries, sourced from World Population Prospects 2017. The chart renders population values on the x-axis and country names on the y-axis using SVG. The code uses D3 v5 methods including `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. Population data is loaded from a local CSV file and multiplied by 1000 before being scaled, with bars styled in steel blue.
AI-generated descriptionThis bar chart shows population of the five most populous countries, from World Population Prospects 2017.
MIT Licensed