Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Question 2

Public visualization

Viewing a saved revision (read-only)

c4a29dcd4bca42179bcc81c5684dfe39

Activity 6 Question 2

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

This interactive stacked bar chart displays annual values for four categories from 1995 to 2003, loaded from a CSV file. Radio buttons toggle between two animated transitions: the first highlights bars with a green stroke, while the second narrows each bar and shifts it horizontally with a red stroke. The visualization uses D3 v4’s `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleOrdinal`, rendering shapes as SVG rectangles with `transition()` calls animating x, y, width, and stroke attributes.

AI-generated description