Skip to main content
100%

Task8_Question2

✓ Published0🌍 Public
KKeerthi
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This stacked bar chart shows the distribution of movie ratings across genres, with each bar representing a genre and segments showing the percentage of ratings in different categories. It uses D3.js v7 with an SVG rendering approach, where the data is processed through `d3.stack()` and mapped to horizontal bars. The chart employs `d3.scaleOrdinal()` for color coding and `d3.scaleBand()` for the y-axis layout. Interactive tooltips display exact percentages using `d3.select()` and event handlers, with the data loaded from a CSV file containing cereal information.

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