Skip to main content
Public

Share visualization

Loading preview…

Activity6_Q1

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Activity6_Q1

0
GGunna,Praneeth Reddy
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from Activity6_Task2

This example visualizes the top 10 most populous countries from 2016 to 2020 using a stacked horizontal bar chart, where each bar is segmented by year to show the population distribution across the five-year period. The chart is built with D3.js v7, using `d3.stack()` to create the stacked data, `d3.scaleBand` for the y-axis, and `d3.scaleLinear` for the x-axis. Hovering over a segment displays a tooltip with the specific year, population, and percentage share. The data is sourced from a CSV file containing population figures for each country and year.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed