Skip to main content
100%

Population Bar Chart with margins

✓ Published1🌍 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

MIT Licensed

Similar vizzes