🌍 Public
Viewing a saved revision (read-only)
4c3ec39d5cf64271a7d5ee0c3d5d631d
Making a Bar Chart
This example shows a horizontal bar chart of the ten most populous countries using data from a CSV file, with population values scaled in thousands. The visualization is built with D3 v7, using `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` for the axes. SVG rectangles are appended to a group element, positioned with the band scale’s padding, and filled with steelblue via CSS.
AI-generated description