Skip to main content
100%

Question-2_Task-2

✓ Published0🌍 Public
Rrahul.bonu524@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Question-2_Task-2

This stacked bar chart shows the distribution of movie ratings across six genres, with each bar segment representing the percentage of films falling into one of five rating categories. The visualization uses a horizontal stacked bar layout, where hovering over a segment displays the exact percentage via a tooltip. The chart is built with D3 v7, using `d3.stack()` to create the stacked data structure and `d3.scaleOrdinal()` for color encoding. SVG rectangles are rendered for each segment, with `d3.axisBottom()` and `d3.axisLeft()` providing the axes. The dataset is loaded from a CSV file containing genre and rating percentage columns.

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