Skip to main content
100%

Activity6_Qu-2

✓ Published0🌍 Public
Rrakshithareddy217@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the percentage distribution of movie ratings across different genres, with each bar segment representing a rating category. The chart uses a horizontal layout where genres appear on the y-axis and percentage values on the x-axis. Users can hover over individual segments to see precise percentage tooltips, and clicking a segment displays the value in an alert. The visualization is built with D3.js v6, using `d3.stack()` for data stacking, `d3.scaleBand()` for the categorical axis, and `d3.scaleLinear()` for the numerical axis. Data comes from a CSV file containing genre and rating percentage columns.

AI-generated description

The impact of genre on novel 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