Skip to main content
100%

TASK8_TUTORIAL2

✓ Published0🌍 Public
Ttarunskuruvadi@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A stacked bar chart displays the distribution of IMDb ratings across six movie genres, with each bar segmented into five percentage-based rating categories. Horizontal bars show how rating proportions vary by genre, using distinct colors for each rating range. The d3.stack() API constructs the stacked segments, while d3.scaleBand and d3.scaleLinear handle positioning. Hovering over any segment reveals a tooltip with the exact percentage for that genre-rating combination. The visualization renders as scalable vector graphics (SVG) and reads data from a CSV file containing genre and rating percentages.

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