🌍 Public
Viewing a saved revision (read-only)
a96f86c37e8a4128b97d0233c6471f2e
Creating the Bar Chart
This horizontal bar chart displays population estimates for eight countries, from China down to Rwanda, using a clean, left-aligned layout with labeled axes. The visualization is built with D3 v5, using `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` for ticks. Data is loaded from a CSV file, formatted with `format(".2s")`, and rendered as SVG rectangles with a custom title and styled axis text via the Baloo font. The code removes axis domain lines and tick lines for a minimal aesthetic.
AI-generated description