Skip to main content
100%

Activity6_Question1

✓ Published0🌍 Public
AAbhinavReddyKaripireddy@my.unt.edu
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Hello VizHub

This visualization shows the population of 20 countries in 2010 using a horizontal bar chart, with bars sorted in descending order from China to the United Kingdom. The chart uses D3 v7’s `scaleBand` for the categorical country axis and `scaleLinear` for the population values, rendering bars as SVG `rect` elements. Hovering changes the bar color to orange via CSS. Data is loaded from a CSV file with `d3.csv`, and axes are formatted with `d3.axisLeft`, `d3.axisBottom`, and `d3.format` for abbreviated tick labels.

AI-generated description
MIT Licensed

Similar vizzes