Task2_Activity6
This stacked bar chart visualizes the distribution of four flower measurements—sepal length, sepal width, petal length, and petal width—across the three Iris species. Each horizontal bar represents a species, with segments proportional to the percentage of each measurement type. Hovering over a segment reveals the exact percentage via a D3 tooltip. The chart uses `d3.csv` to load the Iris dataset, `d3.stack` for stacking, and `d3.scaleBand` for the y-axis, with data rendered as SVG rectangles.
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%.