Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment6_Question4.9

Public visualization

Assignment6_Question4.9

0 stars1🌍 Public
Mmasters200128@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This bubble chart compares GDP and average life expectancy across ten countries, with circle size encoding population and color identifying each nation. The visualization uses D3.js v6 scales (`d3.scaleLinear`, `d3.scaleSqrt`) and SVG rendering to position bubbles, draw axes with `d3.axisBottom` and `d3.axisLeft`, and generate a custom legend. Data is loaded from a local CSV file via `d3.csv`, with labels for axes and a title providing context.

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