🌍 Public
Viewing a saved revision (read-only)
a3d166a2c4a64821a01d98c2f5e8756b
Making a bar chart
This chart displays the populations of ten countries, using horizontal bars whose lengths correspond to each nation’s total population. The visualization is built with D3 v5, reading data from a local CSV file and rendering SVG rectangles through `select`, `csv`, `scaleLinear`, `scaleBand`, and `bandwidth`. The x-axis scales population values, while the y-axis positions country names, and the bars are colored with the default SVG styling.
AI-generated description