Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6_Question2

Public visualization

Viewing a saved revision (read-only)

fabbf595fede4f958117823222d457be

Fork of Activity6_Question2

0 stars0🌍 Public
AAnilreddyveeraiahgari@my.unt.edu
Last edited Apr 4, 2025
Created on Apr 4, 2025

This stacked bar chart displays the percentage distribution of low, mid, and high categories across six fictional movie genres, encoded with a diverging color palette. Built with D3 v7, it uses `d3.stack()` to create the layered segments and `d3.scaleBand()` for the categorical y-axis. Rectangles render as SVG elements, with interactive tooltips triggered by mouseover events to reveal exact segment percentages. Data is loaded from a static CSV file, though the chart here uses hardcoded JavaScript arrays for demonstration.

AI-generated description