Activity 6 task 2 question 1
✓ Published0🌍 Public
This example shows the distribution of age-group percentages across multiple streaming platforms using a stacked horizontal bar chart. Six platforms, including Netflix, Hulu, Disney+, and others, are compared across five age brackets from Under 18 to 45+. The data is loaded from a CSV file and rendered as SVG using D3.js v7, with d3.stack() to compute the stacking and d3.scaleOrdinal to assign categorical colors. Interactive tooltips display the exact percentage for each platform-age segment on mouseover.
AI-generated descriptionMIT Licensed