Fork of Fork of Activity6-Q2.3
This stacked bar chart illustrates the distribution of numerical measurements—sepal length, sepal width, petal length, and petal width—across the three iris species. Each horizontal bar represents a species, segmented by measurement type, with the total length normalized to 100%. Hovering over a segment displays a tooltip with the precise measurement value. The visualization is built with D3 v7, using `d3.stack()` for data aggregation, `d3.scaleBand()` for the categorical axis, and `d3.scaleLinear()` for the continuous axis, rendered as SVG.
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%.