Fork of Task 9 question2
This stacked area chart compares the distribution of IMDb ratings across six movie genres, showing the proportion of films in each rating band (from "below 5.0" to "above 8.5") for each genre. The chart uses a color-coded legend and an area chart with a basis curve interpolation to represent the stacked percentages, which sum to 1. The visualization is built with the D3.js library, version 7, using its `scaleBand` for the genre axis, `scaleLinear` for the percentage axis, and the `axisBottom` helper for the x-axis. Data is loaded from a CSV file via `d3.csv`.
AI-generated descriptionThe 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%.