Barchart
✓ Published1🌍 Public
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 descriptionMIT Licensed