Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_tutorial1

Public visualization

Viewing a saved revision (read-only)

45352cde76a54a3b88b68c3b5eb75f59

Activity 6_tutorial1

0 stars0🌍 Public
Ssairohithchada@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Hello VizHub

This horizontal bar chart displays the 2020 population estimates for the top 30 countries, with countries listed along the y-axis and population values mapped to bar length on the x-axis. The visualization uses a linear scale for population and a band scale for country categories, rendering light green bars as SVG rectangles via the `d3.scaleLinear` and `d3.scaleBand` APIs. The bottom axis includes a custom tick format that converts millions to billions (e.g., "1.2B"), and both axes are labeled. Data is loaded asynchronously from a CSV file using `d3.csv`.

AI-generated description