Fork of Activiry6_Task2
This stacked bar chart shows the distribution of IMDb movie ratings across five genres, with each bar segment representing the percentage of ratings within a specific range. The visualization reveals how genre influences rating outcomes, such as documentaries receiving higher ratings than action films. Built with D3 v7, the chart uses `d3.stack()` to create the stacked segments and `d3.scaleBand` for the categorical genre axis. Interactive tooltips display exact percentages when hovering over each segment, with the chart data loaded from a CSV file and rendered as SVG.
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%.