Skip to main content
100%

Activity 6 Task2

✓ Published0🌍 Public
Vvishu.valandas@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This stacked bar chart shows the percentage distribution of rating levels within different movie genres, with each genre represented as a horizontal bar divided into colored segments. The visualization uses D3.js (v7) with an SVG rendering, applying `d3.scaleLinear`, `d3.scaleBand`, and `d3.stack` to process the data, while a custom tooltip displays exact percentages on hover. The color scale maps five distinct rating categories, and the chart includes axis labels and a legend to clarify the genre-to-rating relationship.

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