Project_crop_yield
This stacked bar chart shows sales distribution across fruit categories over multiple years, with each bar segment representing a year's contribution to total sales. The visualization uses D3 v7's `d3.stack()` to compute stacked series and `d3.scaleBand()` for categorical positioning along the vertical axis, while a linear scale handles the horizontal sales values. Hovering over any segment displays a tooltip with the exact sales figure for that category-year combination. The chart includes axis labels, a title, and a legend identifying each year's color coding, rendered as SVG elements with data loaded from a CSV file.
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%.