Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bubble chart

Public visualization

Fork of Bubble chart

0 stars0🌍 Public
Jjasthilavanya2022@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Bubble chart

This bubble chart visualizes the correlation between average horsepower, torque, and highway MPG across 31 car makes. Each circle’s position encodes horsepower (x-axis) and torque (y-axis), while its radius represents highway MPG and its color distinguishes the manufacturer. The code uses `d3.csv` to load data, `d3.scaleLinear` for axes and bubble size, and `d3.scaleOrdinal` with interpolated turbo colors for categorical mapping. Interactive tooltips appear on `mouseover`, and a legend explains both bubble size and color groups. The SVG render includes animated transitions on hover via CSS opacity changes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed