question 2
This stacked bar chart visualizes the proportion of sepal length and sepal width measurements across three iris species, demonstrating how these attributes vary by category. Each species is represented as a full-height bar segmented into two colored sections, with the y-axis showing the summed measurement values. The visualization uses d3.stack() to construct the stacked series and d3.scaleBand with d3.scaleLinear for positioning. Hovering over any segment triggers a tooltip displaying the species and exact value, while d3.axisLeft and d3.axisBottom label the axes. Data comes from the included 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%.