Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

act8_task4

Public visualization

Viewing a saved revision (read-only)

377aa14b22dd48689289fd04c89031df

act8_task4

0 stars0🌍 Public
Rravularasesh3102@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This visualization uses a bubble chart to show the correlation between average horsepower, torque, and highway MPG for various car makes, with bubble size encoding MPG and color distinguishing makes. The code leverages d3.v7 with an SVG rendering approach, using d3.csv to load data, d3.scaleLinear for positioning and sizing, and d3.scaleOrdinal with d3.interpolateTurbo for coloring. Interactive tooltips appear on mouseover via d3 event handling. A legend displays the MPG bubble-size scale and a color-coded list of car makes.

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.