ACTIVITY 6 tutorial 2 Bhavani mandula
This stacked bar chart displays the average horsepower and torque for various car makes, revealing performance differences across brands. The chart uses d3.stack() and d3.scaleBand to segment each bar, with d3.scaleLinear for the y-axis and d3.scaleOrdinal for color encoding. Hovering over a bar triggers a pop-up with exact percentages, though the code currently omits the tooltip implementation. Data is sourced from the provided CSV file, and rendering uses SVG elements generated by D3 v7.
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%.