Skip to main content
100%

Activity6_Task2_question3

✓ Published1🌍 Public
Cchandrikachowdary867@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity6_Task2

This stacked bar chart visualizes the distribution of IMDb rating levels across six movie genres, showing the proportional share of ratings from "below 5.0" to "above 8.5" within each genre. Built with D3 v7, the visualization uses `d3.stack()` to accumulate rating percentages into horizontal bars, with SVG rectangles colored by a `d3.scaleOrdinal()` palette. Hovering reveals tooltips displaying exact percentages, computed from the CSV data. The chart includes axes, a legend, and uses `d3.axisLeft` and `d3.axisBottom` for genre and percentage scales.

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