Fork of Activity6_Task1
✓ Published2🌍 Public
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 descriptionMIT Licensed