Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Color: Social Media MQP

Public visualization

Color: Social Media MQP

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed