🌍 Public
Viewing a saved revision (read-only)
e6ad982901e54225a30c275cc87e86b4
Making a bar chart
This bar chart displays population counts for ten countries, using horizontal bars ordered by country name. The visualization is built with D3 v5, loading data from a CSV file and rendering to SVG. It employs `scaleLinear` for the population axis and `scaleBand` for the categorical country axis, with `axisLeft` and `axisBottom` generating the ticks. Bars are drawn as SVG rectangles with a fixed steelblue fill, and the chart is positioned using explicit margins.
AI-generated descriptionThis bar chart comes from (https://beta.vizhub.com/curran/c3b14112dae34ef395999cef5783324f).