Activity8_Task2_DV_LB_Q2.1
A stacked bar chart displays the percentage distribution of five rating levels across movie genres, with each bar segment colored by rating category. Hovering over a segment highlights it and reveals an accurate percentage via a tooltip. The visualization uses D3 v7 with `d3.stack()` for data stacking, `d3.scaleOrdinal` for categorical colors, and `d3.scaleBand`/`d3.scaleLinear` for axes. Data comes from the provided CSV, rendered as SVG elements with interactive mouse events.
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%.