Skip to main content
100%

Activity8Task2UN

✓ Published0🌍 Public
Uuzairnaeem15@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity-6

A horizontal stacked bar chart shows the percentage distribution of social media platform users across each month of 2023. The chart displays the total share for platforms like Facebook, Pinterest, and Twitter, with each bar segmented by platform and colored via a custom ordinal scale. Using D3 v7, the code loads a CSV file and applies d3.stack to compute the layered segments, while d3.scaleBand positions the months and d3.scaleLinear maps percentages. Interactive tooltips reveal exact values on hover, with axes rendered by d3.axisBottom and d3.axisLeft.

AI-generated description
MIT Licensed

Similar vizzes