Skip to main content
100%

Bubble chart

✓ Published0🌍 Public
HHarshiiiiiiiip
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

A bubble chart visualizes the correlation between average horsepower, torque, and highway MPG across 31 car makes, with bubble size encoding MPG and color distinguishing manufacturers. D3.js v7 loads the CSV data and renders the SVG chart with linear scales for axes and bubble radius, plus an ordinal color scale using `d3.interpolateTurbo`. Hovering reveals a tooltip showing the car make, while custom legends display both the MPG size mapping and color-coded manufacturer categories.

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