Skip to main content
100%

activity6 question 9

✓ Published0🌍 Public
Ggketan456@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This bubble chart maps US cities by population on the x-axis, area on the y-axis, and GDP as bubble size. It uses D3’s `scaleLinear` for axes and bubble scaling, `scaleOrdinal` with `interpolateTurbo` for city colors, and `axisBottom` and `axisLeft` for tick marks. A tooltip displays city name and GDP on hover, while a legend with circles and dashed lines shows GDP values. Data is loaded from a local CSV via `d3.csv`.

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