Skip to main content
100%

ACTIVITY_6 TASK 2

✓ Published0🌍 Public
Ppasumarthiraghuram21@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from IMDb Movie ratings

A stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, with each bar representing the percentage of films falling into five rating brackets from below 5.0 to above 8.5. The chart highlights how genres like Documentary skew toward higher ratings while Action clusters at lower scores. Built with d3.v7, the visualization uses d3.stack for data transformation, d3.scaleBand for the y-axis, and d3.scaleLinear for the x-axis, rendering as SVG rectangles. Interactive tooltips on hover display exact percentages using d3.select and d3.format, sourced from a CSV file.

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