Fork of Activity6_Task2_Question2
This stacked bar chart shows the percentage distribution of five rating levels across different handbag brands, revealing how ratings vary by genre. Each horizontal bar represents a brand, segmented by rating categories from “below 6.0” to “above 8.5”. The visualization uses d3.stack() to compute stacked segments, d3.scaleBand for the categorical y-axis, and d3.scaleLinear for the percentage x-axis. Interactive tooltips appear on mouseover, displaying exact percentages formatted with d3.format('.2f'). The SVG rendering uses D3 v7 with axes generated by d3.axisLeft and d3.axisBottom.
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%.