Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of task 8-part 2

Public visualization

Viewing a saved revision (read-only)

44a57dc0dd8949f4883cee49db8e8dd6

Fork of task 8-part 2

0 stars0🌍 Public
Bbhavithamanyam@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This stacked bar chart visualizes the impact of movie genre on ratings, showing the percentage distribution across five rating levels for each genre in the dataset. The chart uses the D3 v7 library to process data with `d3.stack()` and render SVG rectangles, with hover interactions displaying exact percentages via a custom tooltip. Ratings are encoded as stacked segments on a linear x-axis, while genres are positioned on a band scale y-axis, with an ordinal color scale distinguishing rating categories.

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