Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6_2

Public visualization

Viewing a saved revision (read-only)

38cf371f82d748698e1347c6136393c0

Activity-6_2

0 stars0🌍 Public
MMdAfikurRahmanKhan@my.unt.edu
Last edited Nov 17, 2025
Created on Nov 17, 2025
Forked from Hello VizHub

This visualization shows the distribution of movie ratings across six genres, using a stacked horizontal bar chart where each bar is divided into five rating categories from "Below 5.0" to "Above 8.5". The chart uses D3 v7 with an SVG rendering and a color legend to distinguish the rating segments. The data is hardcoded in the script, and the visualization includes an interactive tooltip that displays the percentage value of each segment when hovered over, with the segment slightly dimming on mouseover. The chart is built using `d3.stack()` for the stacked data structure, `d3.scaleBand()` for the y-axis genres, and `d3.scaleLinear()` for the x-axis percentages.

AI-generated description