Skip to main content
100%

Activity 6 _Task 1 _ Q.1.2

✓ Published0🌍 Public
Pperamranji
Last edited Apr 2, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

This horizontal bar chart shows the population of 20 countries in 2010, ordered along a categorical y-axis and scaled linearly on the x-axis. Each light blue bar represents a country’s population, with tick labels formatted in billions (e.g., “1.2B”) using `d3.format`. The visualization uses D3 v7 to create SVG elements, with the `scaleBand` for country categories and `scaleLinear` for population values. Data is loaded asynchronously from a CSV file via `d3.csv`, and axes are rendered using `d3.axisBottom` and `d3.axisLeft`, with custom labels for population and countries.

AI-generated description
MIT Licensed

Similar vizzes