Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

QUESTION-2(TASK-2)

Public visualization

Viewing a saved revision (read-only)

2c5983b5045d47d686d46f465b9fd0ef

QUESTION-2(TASK-2)

0 stars0🌍 Public
Vvenkataravitarunelisetty@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This stacked horizontal bar chart displays population distribution across multiple countries for the years 1950–2020, with each bar segment representing a yearly population count. It uses d3.csv to load the data, d3.stack() to compute the stacked segments, and d3.scaleOrdinal with d3.schemeCategory10 for color encoding. Hovering over a segment highlights it and shows a tooltip with the specific year and population value, using d3.axisLeft, d3.axisBottom, and d3.scaleBand.

AI-generated description