Activity6_Task2
This stacked bar chart compares horsepower, torque, and highway MPG across car manufacturers, showing how each performance metric contributes to a total value per make. The visualization uses D3.js v7 to create SVG bar segments via the `d3.stack()` function, with a color scale distinguishing metrics. Hovering over a bar segment triggers a tooltip displaying the exact metric value, while axis labels and a legend clarify the categorical comparison. The data originates from a CSV file, and the code uses `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis.
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%.