Skip to main content
100%

task_9&10 question_2

✓ Published0🌍 Public
Sskykarthik97@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes