task_9&10 question_2
✓ Published0🌍 Public
This example shows the average horsepower, torque, and highway MPG for 31 car brands as a stacked area chart rendered as SVG. The data is aggregated by brand and drawn using D3 v5’s `d3.stack()`, `d3.area()`, and `d3.scaleBand()` on a categorical x-axis. Each layer is filled with a `d3.schemeCategory10` color, and the y-axis is scaled linearly. The chart is built with standard D3 selections and the `join()` pattern for the path elements.
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