🌍 Public
Viewing a saved revision (read-only)
5b762b15fb9a4dbbab2a7d9ae7186881
Tutorial
This chart shows a horizontal bar graph comparing population values for individual names, with each bar’s length proportional to the amount from the dataset. The code loads data from a CSV file, multiplies each amount by 1,000, and renders it using D3 v5 with SVG. It uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, while `d3.axisLeft` and `d3.axisBottom` generate the labeled axes. The bars are drawn as `rect` elements with a steelblue fill.
AI-generated description