🌍 Public
Viewing a saved revision (read-only)
179d72784f49482fa396e4f9e5882bc6
bar graph
A horizontal bar graph displays population counts for four countries using D3 v6. The visualization renders as SVG, with steelblue bars representing each nation's population, sorted alphabetically by country name. The chart reads population data from a CSV file, multiplies the values by 1000, and uses D3's `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. Axes are generated with `axisLeft` and `axisBottom`, while the bar rectangles are appended dynamically to the SVG group.
AI-generated description