Skip to main content
100%

Activity-6_Question-4

✓ Published0🌍 Public
VVasanth Krishna
Last edited Oct 23, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This animated scatterplot uses D3.js (v7) to show the correlation between price, weight, and city MPG across 43 car makes. Each circle’s x-axis position maps to price, y-axis to weight, and radius encodes fuel efficiency values read from `bubblechart.csv`. D3’s `scaleLinear`, `scaleOrdinal`, and `d3.interpolateTurbo` assign color per make, while mouse events trigger a styled tooltip with make-specific details. A legend with outlined bubbles and dashed lines clarifies MPG size encoding using SVG rendering.

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