Activity6_Q2
This stacked bar chart shows customer satisfaction levels across ten car brands, with each bar segmented into five rating categories from “Very Dissatisfied” to “Very Satisfied.” Hovering over a segment displays its exact count via a tooltip. The visualization uses D3 v7’s `d3.stack()` to compute stacked layers, `d3.scaleOrdinal()` for color mapping, and `d3.axisLeft()` and `d3.axisBottom()` for axes. Data comes from the embedded `car_data.csv` file, and the SVG rendering includes a legend and axis labels.
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%.