Activity_Question-2
✓ Published0🌍 Public
This example displays a stacked bar chart comparing three vehicle performance metrics—horsepower, torque, and highway MPG—across 31 car makes. The bars are sorted by increasing horsepower, revealing a trade-off between raw power and fuel efficiency. Built with D3 v7, the visualization uses a linear scale for the y-axis and a band scale for categorical x-axis values. Data comes from a CSV file containing average specifications per make, rendered as SVG `rect` elements with the `.bar` class.
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.
MIT Licensed