Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6_Task1

Public visualization

Viewing a saved revision (read-only)

7e6a5479dc0a4c7a85bd8e9c7785b409

Fork of Activity6_Task1

0 stars2🌍 Public
Ppuneetputtu@my.unt.edu
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Activity6_Task1

This bar chart visualizes the top 30 most populous countries in 2020 using a horizontal layout, with population values displayed in millions on the x-axis and country names on the y-axis. The visualization loads CSV data via d3.csv, then sorts and filters the dataset before rendering SVG rectangles with React components. The chart employs d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis, with custom AxisBottom and AxisLeft components generating tick marks and labels. The bars use a consistent teal fill with rounded corners, and the code includes fallback data sources and error handling for network failures.

AI-generated description