Skip to main content
100%

Activity6_TASK-2

✓ Published0🌍 Public
Vvinilavoddi@my.unt.edu
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

A stacked bar chart visualizes the distribution of five rating categories across six movie genres, with each bar segment showing the percentage of ratings within that genre. Hovering over a segment displays a tooltip with the exact percentage value. The chart uses d3.stack() to aggregate data from a CSV file, d3.scaleBand() for the categorical genre axis, and d3.scaleLinear() for the percentage scale. Colors are assigned via d3.scaleOrdinal(), and SVG rendering displays the horizontal bars with axis labels.

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

MIT Licensed

Similar vizzes