Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6Task1T1

Public visualization

Viewing a saved revision (read-only)

9676943ca50e4d91bf3132b478eb60b6

Fork of Activity6Task1T1

0 stars0🌍 Public
Mmaheshsachin1234@gmail.com
Last edited Mar 28, 2025
Created on Mar 28, 2025
Forked from Hello VizHub

This horizontal bar chart displays the top 30 countries by population in 2020, with each bar’s length encoded by population value and colored by a pastel ordinal scale. Built with D3 v7, the visualization uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and `d3.axisBottom`/`d3.axisLeft` to generate tick marks. Data loads asynchronously via `d3.csv` from a GitHub Gist, and bars are drawn as SVG rectangles with opacity, while axis labels and tick styling are applied through CSS.

AI-generated description