Skip to main content
100%

activity-6_question-3

✓ Published0🌍 Public
Ssiddhartha gurram
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from IMDb Movie ratings

This stacked bar chart shows the percentage distribution of rating levels across different movie genres, revealing how genre influences audience ratings. Hovering over each bar segment displays exact percentages via pop-ups, with each genre’s total summing to 100%. The visualization uses D3.js v7’s `d3.stack()` and `d3.scaleBand()` to create the bars, with `d3.scaleOrdinal()` and `d3.schemeCategory10` assigning colors to rating categories. Data is loaded from a CSV file using `d3.csv()`, and the SVG rendering includes axes generated by `d3.axisBottom()` and `d3.axisLeft()`.

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