Skip to main content
100%

Barras D3.js

✓ Published1🌍 Public
Bbasskur
Last edited Jan 6, 2020
Created on Jan 6, 2020
Forked from Making a Bar Chart

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 description
MIT Licensed

Similar vizzes