Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6_Task2_Q1

Public visualization

Viewing a saved revision (read-only)

0e2b8b15c89f489fbd5ad2797f95984e

Fork of Activity6_Task2_Q1

0 stars0🌍 Public
Rramyaraomadhavareddy@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task22

This stacked bar chart visualizes the percentage of five rating levels for different movies, showing how genre impacts audience ratings. Each movie’s bar is segmented by rating categories, with hover tooltips revealing precise percentages. The visualization uses D3 v7’s `d3.stack()` and `d3.scaleOrdinal()` for color encoding, with `d3.scaleBand()` for the y-axis and `d3.scaleLinear()` for the x-axis. Data comes from a local CSV file, rendered as SVG rectangles with interactive mouse events for tooltip display.

AI-generated description

The impact of genre on movie ratings

This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.