Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 4

Public visualization

Viewing a saved revision (read-only)

037d32c548944044994b1980a7e87a8c

Task 4

0 stars1🌍 Public
IIkram Mohammed
Last edited Oct 20, 2024
Created on Oct 20, 2024

This bubble chart visualizes the correlation between average horsepower, torque, and highway MPG across 31 car makes. Each circle’s x-position maps to horsepower, y-position to torque, and its radius encodes highway MPG, while color distinguishes the manufacturer. Rendered as SVG with D3 v7, the visualization uses `d3.scaleLinear` for axes and bubble size, `d3.scaleOrdinal` with an interpolated turbo color palette for categories, and a custom tooltip on mouseover. Animated hover effects and a dual legend for MPG values and color categories are included. The data comes from a CSV file.

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.