Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Activity 6_Question1 1.2

Public visualization

Fork of Activity 6_Question1 1.2

0 stars2๐ŸŒ Public
HHarshita Vairagade
Last edited Apr 14, 2024
Created on Apr 13, 2024

This bar chart displays the population of the top 20 countries in 2010, ranked and sorted by country. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data to an SVG canvas, rendering bars via custom `Marks`, `AxisBottom`, and `AxisLeft` components. The data is fetched from a CSV using `d3.csv` and formatted with `d3.format` to abbreviate large numbers. Styling includes custom tick lines, fill colors, and a Poppins font.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed