Fork of Activity6_Task2
This stacked bar chart visualizes the percentage distribution of airline ratings across different genres. Each bar represents a genre, with colored segments showing the proportion of each rating level, summing to 100%. Hovering over a segment displays a tooltip with the exact percentage. The visualization uses d3.v7 with SVG rendering, employing `d3.stack()` for data stacking, `d3.scaleOrdinal()` for colors, and `d3.axisBottom()` for the percentage axis.
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%.