Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Population Bar Chart with margins

Public visualization

Population Bar Chart with margins

0 stars1🌍 Public
SSam Hege
Last edited Sep 14, 2022
Created on Sep 14, 2022

This visualization displays the top 10 countries by 2020 population as horizontal bars. The chart uses React with hooks to fetch and manage data, while D3 v5 provides the scaling functions—`scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Rendered as SVG, the chart applies fixed margins to position the plot area, loading data from a CSV via a gist URL.

AI-generated description

A program that loads and visualizes some data

Comments

Sign in to join the discussion.

MIT Licensed