Skip to main content
100%

Color: Social Media MQP

✓ Published1🌍 Public
KK Munz
Last edited Mar 14, 2023
Created on Feb 27, 2023

This visualization displays survey responses about social media usage as a diverging stacked bar chart, with each bar representing a platform and colored segments showing the distribution of agreement or frequency ratings. The code uses D3 v7’s `scaleBand` for categorical bars, `scaleLinear` for the diverging axis, and the `schemePuOr` color scheme. Data is loaded from a CSV file via `csvParse`, aggregated with `d3.rollup`, and rendered through custom functions for bars, axes, and legend. A dual-mode filter can restrict the view to two selected media platforms.

AI-generated description

I have added words to the legend, a dual mode, and the correct color import

MIT Licensed

Similar vizzes