Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Activity6_Task2_Question2

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed