Skip to main content
100%

Activity6_Question4.9

✓ Published0🌍 Public
Mmasters200128@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This example displays a bubble chart comparing GDP and average life expectancy across ten countries, with bubble size scaled to population and colors mapped to country-specific values. Built with D3 v6 and rendered as SVG, it uses `d3.csv` to load the dataset, `scaleLinear` and `scaleSqrt` for positioning and radius, and `d3.axisBottom`/`axisLeft` for axes. A custom legend lists each country with its corresponding color swatch, and labels identify the axes and chart title.

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