Creating the Bar Chart
✓ Published1🌍 Public
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 descriptionMIT Licensed