Skip to main content
100%

Activity6_Task2

✓ Published2🌍 Public
VVENKATESWAR RAO CHINTA
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from IMDb Movie ratings

This stacked bar chart visualizes how movie ratings vary across six genres, showing the percentage of films that fall into each of five rating categories, from below 5.0 to above 8.5. Built with D3.js (v7) and rendered as an SVG, the chart uses a horizontal stacked layout where each genre forms a full-width bar, with color-coded segments representing rating levels. Interactive tooltips appear on hover, revealing the precise percentage for each genre-rating combination. The code employs `d3.stack`, `d3.scaleOrdinal`, and `d3.axisBottom` to process the CSV data and construct the visualization.

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