Skip to main content
100%

act6_Q.2_11719493

✓ Published1🌍 Public
Ssravani1969@gmail.com
Last edited Mar 28, 2025
Created on Mar 28, 2025
Forked from act6_Q.2_11719493

This example shows a horizontal bar chart ranking the top 20 countries by population in 2010, with bars colored lightgreen and labeled axes for country names and population values. The visualization loads CSV data from a GitHub repository, processes it by sorting and trimming to the top 20 entries, and renders SVG rectangles scaled by d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis. The chart uses d3.axisBottom and d3.axisLeft for ticks, with dynamic formatting converting values like billions to "B", and it redraws responsively on window resize.

AI-generated description
MIT Licensed

Similar vizzes