Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Creating the Bar Chart

Public visualization

Viewing a saved revision (read-only)

3d673e323a51412084cdaed03ac895fb

Creating the Bar Chart

0 stars1🌍 Public
Eedmond gihozo
Last edited Mar 28, 2020
Created on Mar 28, 2020

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