Skip to main content
100%

act 6 t4

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

A bubble chart shows the correlation between average horsepower, torque, and highway MPG across car makes, with bubble size encoding MPG and color distinguishing manufacturers. The visualization, rendered as SVG with animation, loads D3 from UNPKG and uses `d3.csv` to import data. It builds axes with `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft`, while `d3.scaleOrdinal` and `d3.interpolateTurbo` assign colors. Interactive tooltips appear on hover via mouse events, and a legend scales bubble sizes for MPG values.

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