Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6 task 2

Public visualization

Viewing a saved revision (read-only)

342b86fb7edf498a869e60807c25eb66

activity6 task 2

0 stars0🌍 Public
Ssiri2001j@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This visualization shows the distribution of GDP growth rates across six countries, with each country’s values broken into five rate categories using a stacked horizontal bar chart. The chart uses a linear x-axis for percentages and a banded y-axis for countries, with colored segments representing each growth-rate range. Built with D3 v7, it loads CSV data via `d3.csv`, applies `d3.stack` for stacking, and uses `d3.scaleOrdinal` for color mapping. Interactive tooltips display exact percentages on mouseover using D3 event handlers.

AI-generated description