Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Stylized Bar Chart

Public visualization

Fork of Stylized Bar Chart

0 stars0🌍 Public
Vvcabgar
Last edited May 15, 2022
Created on May 15, 2022
Forked from Stylized Bar Chart

This bar chart displays the top 10 most populous countries using data from the United Nations World Population Prospects 2019. The chart uses SVG rendering within a React component, leveraging D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. Axes are drawn with custom React components (`AxisBottom`, `AxisLeft`), while `Marks` renders each bar with a tooltip. Population values are formatted with D3’s `format` function, converting large numbers to billions with a "B" suffix.

AI-generated description

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

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed