🌍 Public
Viewing a saved revision (read-only)
7cd2e342193940f189f2af2f4a7eacab
Q2
This stacked horizontal bar chart displays the average values for horsepower, torque, and highway MPG across 27 car manufacturers. The chart uses D3 v7’s `d3.stack` and `d3.scaleOrdinal` to segment each manufacturer’s bar into three colored sections, with a legend identifying each attribute. Data is loaded from a local CSV file and rendered as SVG. The horizontal axis is scaled linearly, while the vertical axis lists car makes, with axis labels rotated for readability.
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.