Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Viz_3

Public visualization

Viz_3

0 stars1🌍 Public
NNikithakatta30
Last edited May 7, 2023
Created on May 7, 2023
Forked from Untitled

This bar chart displays the top five most populated countries using data from a Pollution 2019 dataset, with country names on the y-axis and population counts on the x-axis. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` for positioning, and renders SVG rectangles via the `Marks` component. Axes are drawn with custom `AxisBottom` and `AxisLeft` components, while population values are formatted using D3’s `format` function to abbreviate large numbers in billions.

AI-generated description

A program that shows the top 5 most populated countries as a bar chart.

Data: population dataset.

Comments

Sign in to join the discussion.

MIT Licensed