🌍 Public
Viewing a saved revision (read-only)
b55e7ff7b0174ff6b1cda630cbeb15df
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