Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2_Question2

Public visualization

Viewing a saved revision (read-only)

d3c375fcd5e44e099b89f48069f242c3

Activity6_Task2_Question2

0 stars0🌍 Public
AAftab Hussain
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

A stacked bar chart shows the proportional distribution of movie ratings across six genres, with each bar divided into five rating score ranges from below 5.0 to above 8.5. The chart uses d3.stack with stackOffsetExpand to normalize each genre bar to 100%, and displays percentage labels within segments wider than 40 pixels. D3 v7 renders SVG rectangles and axes, with an ordinal color scale and tooltips via appended title elements. Data is hardcoded as an array of objects in the script.

AI-generated description