Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 _Task 1 _ Q.1.2

Public visualization

Viewing a saved revision (read-only)

57fc122504b2468c964d7b6d972cfb0a

Activity 6 _Task 1 _ Q.1.2

0 stars0🌍 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