🌍 Public
Viewing a saved revision (read-only)
97cea7ff6ec847cf9d5538ffe9657f5a
Barchart
A horizontal barchart displays the population of China, India, and the United States, with each country’s bar length proportional to its population value. The SVG chart is built using D3 v5, with `scaleLinear` mapping population counts to pixel widths and `scaleBand` positioning categories along the y-axis. Data is loaded from a CSV file via `d3.csv`, and axes are generated using `axisLeft` and `axisBottom`. Bars are rendered as SVG `rect` elements, with a steelblue fill applied through CSS.
AI-generated description