Skip to main content
100%

Task2Q1

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

This example uses a stacked bar chart to compare performance metrics (horsepower, torque, and highway MPG) across seven car makes from a CSV file. Built with D3 v7, it loads data via `d3.csv`, formats values with `d3.format`, and renders SVG bars using `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. Segments are colored via `d3.scaleOrdinal`, and interactive tooltips reveal exact values on hover using D3's event handlers.

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