Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Refactored Bar Chart dsfsdf

Public visualization

Viewing a saved revision (read-only)

ca8311720c1f47ed9df6825a497028af

Fork of Refactored Bar Chart dsfsdf

0 stars0🌍 Public
Jjathinr96
Last edited Oct 21, 2021
Created on Oct 21, 2021

This example displays the ten most populous countries as horizontal bars, with country names on the left axis and population values on the bottom axis. Built with React and rendered as SVG, it uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis. Data is loaded from a CSV file via `d3.csv` and filtered to the top ten entries. The chart includes custom components for axes and marks, with bar heights set to `yScale.bandwidth()-30`, producing a visually distinct, intentionally minimal presentation.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.