Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
AAliaksandr
Last edited Jan 7, 2021
Created on Jan 5, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a static, axis-less bar chart, using React for the user interface and D3.js for data loading and scaling. It fetches population data from the United Nations World Population Prospects 2019 via D3’s `csv` function, then maps the values using `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. The SVG rendering omits the axes, leaving only the bars and tick labels, which are generated from `xScale.ticks()`.

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