🌍 Public
Viewing a saved revision (read-only)
dae59f606a08405cae78c012f862d089
task2_question3
This stacked bar chart shows how horsepower, torque, and highway MPG values contribute to the total specifications for each car manufacturer, with each bar segment colored by specification type. The visualization uses d3.stack() to compute the stacked series, d3.scaleLinear and d3.scaleBand for positioning, and built-in SVG mouse events with a tooltip to display exact segment values on hover. A legend identifies the three color-coded specifications, while the x-axis represents the cumulative value scale. Data comes from a CSV file loaded directly into the d3.v7 environment.
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.