Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity8_Task-4

Public visualization

Viewing a saved revision (read-only)

033a2b2a13c74e7ca3d993e353749cbf

Activity8_Task-4

0 stars0🌍 Public
HHarika Metta
Last edited Apr 15, 2024
Created on Apr 15, 2024

This visualization shows the correlation between average horsepower, torque, and highway MPG for various car makes, with each bubble sized by MPG and colored by make. The chart uses D3.js v7 to create an SVG scatterplot with a tooltip that appears on mouseover, revealing the make of each vehicle. The code employs d3.scaleLinear for axes and bubble sizing, d3.scaleOrdinal with interpolateTurbo for colors, and includes a legend for MPG values and color-coded car brands. Data comes from a local 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.