Skip to main content
100%

Fork of act_6_task_2

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

This stacked bar chart shows the percentage distribution of IMDb rating levels across six movie genres, highlighting how genre influences audience ratings. The horizontal bars use a diverging color scale for the five rating categories, with tooltips on hover revealing exact percentages, where each bar sums to 100%. The visualization is rendered as an SVG using D3 v7, employing `d3.stack` for data transformation and `d3.scaleOrdinal` for color assignment. The axes, ticks, and labels are generated with `d3.axisBottom` and `d3.axisLeft`, and the interaction relies on D3’s `.on('mouseover')` event handlers.

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