Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 tutorial 4

Public visualization

Viewing a saved revision (read-only)

1ced929f3ad74fcb9cae81d23bd43f72

Activity 6 tutorial 4

0 stars0🌍 Public
BBamanGayathri
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This bubble chart shows the correlation between average horsepower, torque, and highway MPG across various car makes, using bubble size to encode MPG and color to distinguish makes. Built with D3 v7, the visualization uses `scaleLinear` for the x/y axes and bubble radius, `scaleOrdinal` for color mapping, and `interpolateTurbo` to generate a color palette. It reads from a local CSV file, renders as SVG, and includes interactive tooltips on mouseover, plus a legend showing the MPG-to-radius scale.

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.