Skip to main content
100%

Fork of Activity6_Task2_Q1

✓ Published0🌍 Public
Rramyaraomadhavareddy@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task22

This stacked bar chart visualizes the percentage of five rating levels for different movies, showing how genre impacts audience ratings. Each movie’s bar is segmented by rating categories, with hover tooltips revealing precise percentages. The visualization uses D3 v7’s `d3.stack()` and `d3.scaleOrdinal()` for color encoding, with `d3.scaleBand()` for the y-axis and `d3.scaleLinear()` for the x-axis. Data comes from a local CSV file, rendered as SVG rectangles with interactive mouse events for tooltip display.

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