Skip to main content
100%

Untitled

✓ Published0🌍 Public
HHarsh kumar
Last edited Jul 1, 2022
Created on Jul 1, 2022
Forked from Stylized Bar Chart

This example shows a bar chart of the top 10 most populous countries, using data from the United Nations World Population Prospects 2019. The React-based visualization uses d3.v7 with SVG rendering, employing `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The `Marks` component renders each bar as a `rect`, with tooltips providing exact population values via the `title` element. Axis components handle tick formatting and labels, while the `useData` hook asynchronously loads the CSV dataset with d3.csv.

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