Skip to main content
100%

Fork of Refactored Bar Chart dsfsdf

✓ Published0🌍 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.

MIT Licensed

Similar vizzes