Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
DDeepikaGoud08
Last edited Mar 21, 2023
Created on Mar 21, 2023
Forked from Stylized Bar Chart

This bar chart displays the top three most populous countries—China, USA, and India—using horizontal bars scaled by population (in millions). Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering SVG rectangles via the `Marks` component. Population values are formatted with D3’s `format` function to abbreviate large numbers (e.g., “12.06B”), and styled with red fills and Poppins font. Data comes from a local CSV file, with axes drawn through custom `AxisBottom` and `AxisLeft` components.

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