Fork of Activity6_Task2_Q1
This stacked bar chart visualizes the percentage of five rating levels for different movies, showing how genre impacts audience ratings. Each movie’s bar is segmented by rating categories, with hover tooltips revealing precise percentages. The visualization uses D3 v7’s `d3.stack()` and `d3.scaleOrdinal()` for color encoding, with `d3.scaleBand()` for the y-axis and `d3.scaleLinear()` for the x-axis. Data comes from a local CSV file, rendered as SVG rectangles with interactive mouse events for tooltip display.
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%.