Skip to main content
100%

Activity 7 Task 5

✓ Published0🌍 Public
AArun Pratap
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example shows the correlation between average horsepower, torque, and highway MPG across 31 car makes using a bubble chart. Each circle’s position encodes horsepower on the x-axis and torque on the y-axis, while its radius and color represent highway MPG and car make, respectively. The visualization includes interactive tooltips on mouseover and a legend for both bubble size and color categories. Built with D3.v7 and SVG, it uses `d3.scaleLinear` for axes and sizing, `d3.scaleOrdinal` with `d3.interpolateTurbo` for colors, and loads data from a local CSV file.

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