Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_2

Public visualization

Viewing a saved revision (read-only)

96a7ee1ee711411ca44ba0eb159d6b61

Activity_6_2

0 stars1🌍 Public
Ssahaspragna6@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity_6_2

This stacked bar chart visualizes the distribution of movie ratings across six genres, showing the percentage of ratings in five categories from "below 5.0" to "above 8.5". The chart uses `d3.stack()` and `d3.scaleOrdinal` for color encoding, with a linear x-axis for percentages and a band scale for genres. Hovering over a segment triggers `d3.select` and tooltip updates via `d3.mousemove`, displaying the exact percentage. The SVG is rendered with `d3.axisBottom` and `d3.axisLeft`, while data is loaded from a CSV file containing the genre and rating proportions.

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%.