Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Activity6_Task 2

Public visualization

Activity6_Task 2

0 stars1๐ŸŒ Public
Nnavyabade05@gmail.com
Last edited Mar 30, 2025
Created on Mar 30, 2025

This visualization uses stacked horizontal bars to show how IMDb movie ratings are distributed across six genres, with each bar segment representing the percentage of films in a rating band. The chart is built with D3.js v7, using `d3.stack()` to compute the cumulative bar segments, `d3.scaleOrdinal()` for color coding, and `d3.axisBottom()` for the percentage scale. An interactive tooltip displays the precise percentage for each genre and rating category on hover, using `d3.format('.2f')` for numeric output. The data comes from a comma-separated file listing genre and five rating brackets.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed