Barras D3.js
✓ Published1🌍 Public
A horizontal bar chart displays the top 10 most populous countries, using D3.js to load a CSV file and render an SVG. The code employs `d3.csv`, `scaleLinear`, `scaleBand`, and `axisLeft`/`axisBottom` to map population values to bar lengths and country names to y-axis positions. Bars are drawn as SVG `rect` elements with a steelblue fill. The chart includes a title and an x-axis label, with population values multiplied by 1,000 from the raw data.
AI-generated descriptionMIT Licensed