Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6.task2

Public visualization

Viewing a saved revision (read-only)

f7015e712a454bcc8977dcdabbf7ebee

Activity 6.task2

0 stars0🌍 Public
Ssanavenkatasurendrareddy@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Act 6.2

This visualization shows the distribution of GDP growth rates across six countries, with each horizontal bar broken into stacked segments representing five growth-rate categories. The code uses D3 v7’s `d3.stack()`, `d3.scaleOrdinal()`, `d3.scaleBand()`, and `d3.scaleLinear()` to render the chart as SVG. Hovering over a segment triggers a tooltip displaying the exact percentage for that country and category. Data is loaded from a CSV file with country and growth-rate columns.

AI-generated description