Skip to main content
100%

Activity7_task2

✓ Published0🌍 Public
Mmandadi1999
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from IMDb Movie ratings

This stacked bar chart shows the percentage of movies within each rating category across six genres, with segments representing rating levels from “below 5.0” to “above 8.5.” Hovering over a bar segment displays an exact percentage via a tooltip. The visualization is built with D3 v7, using `d3.stack()` to generate the stacked data, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the y-axis. The data comes from a CSV file loaded with `d3.csv()`, and the chart is rendered as an SVG.

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