Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Q2

Public visualization

Viewing a saved revision (read-only)

7cd2e342193940f189f2af2f4a7eacab

Q2

0 stars0🌍 Public
Nnsairitwikreddy@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity-6

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 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.