Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Activity6_Question4.9

Public visualization

Activity6_Question4.9

0 stars0๐ŸŒ 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.

Comments

Sign in to join the discussion.

MIT Licensed