Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1

Public visualization

Activity6_Task1

0 stars0🌍 Public
Ppuneetputtu@my.unt.edu
Last edited Apr 1, 2025
Created on Apr 1, 2025

This horizontal bar chart displays the top 30 most populous countries in 2020, sorted in descending order with population values formatted in millions along the x-axis. The visualization uses React with D3 v7 scales and SVG rendering, fetching its CSV data from a GitHub repository with fallback sample data if the request fails. Bars are rendered as SVG rectangles using the `scaleBand` for country positioning and `scaleLinear` for population values, with axis components built through custom React functions for ticks and labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed