taskk8_4
✓ Published0🌍 Public
This example displays a bubble chart comparing seven countries by their GDP, life expectancy, and population. It loads data from a JSON file and uses D3 v7 scales (d3.scaleLinear for axes, d3.scaleSqrt for bubble radius) to map GDP to the x-axis, life expectancy to the y-axis, and population to circle size. The visualization is rendered as an SVG with sky-blue, semi-transparent circles and axis labels appended directly to the chart.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed