🌍 Public
Viewing a saved revision (read-only)
d6f927f0bfcc42d9a865a064e8a6b3cf
Activity 6_Question2
This visualization presents a stacked bar chart comparing the horsepower and torque values for different car makes, with each bar segmented by these two attributes. The chart uses a categorical color scale to distinguish horsepower from torque, and the hover interaction reveals the specific value for each segment. Built with D3.js v7, the code loads data from the Iris.csv file, applies a linear scale for the value axis, and a band scale for the categorical makes. Tooltips are implemented using D3’s selection and event handling to display detailed information on mouseover.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.