Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
MMohamed Nehad Shalabi
Last edited Mar 21, 2021
Created on Mar 20, 2021
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset as a stylized bar chart. The chart uses `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the population values, rendered as SVG rectangles with tooltips. The React-based code leverages the `useData` hook to load and transform CSV data, while custom axis components format the y-axis labels using `d3.format` to abbreviate billions. The visualization applies a custom CSS style with vertical text labels and a teal color scheme for the bars.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes