Skip to main content
100%

Task 6.2

✓ Published1🌍 Public
Pperamranji
Last edited Apr 2, 2025
Created on Mar 30, 2025
Forked from Fork of 6.2

This example shows a stacked horizontal bar chart comparing five sports across five attributes—Popularity, Physical Intensity, Strategy, Teamwork, and Entertainment Value—using data from a CSV file. The visualization uses D3 v7 with SVG rendering, employing `d3.stack()` to create stacked segments, `d3.scaleOrdinal()` for color mapping, and `d3.scaleBand()` for the categorical y-axis. Hovering over any segment triggers a tooltip displaying the exact percentage for that attribute, while the chart includes a legend and axis labels for clarity.

AI-generated description
MIT Licensed

Similar vizzes