activity6_question2.1
This stacked bar chart displays car specifications—horsepower, torque, and highway mpg—for manufacturers like Scion, Kia, and Ferrari. Each horizontal bar uses segments scaled by value, with a legend mapping colors to specifications. The visualization is built with D3 v7, using d3.stack() to aggregate data and d3.scaleOrdinal() for colors. Hovering over segments dims them and a tooltip shows exact values. Data comes from the included data.csv file and renders 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%.