🌍 Public
Viewing a saved revision (read-only)
32d5d7849fbb4146aa0c119ff3285e30
Activity_Task_4
This bubble chart maps GDP against life expectancy for various countries, with bubble size reflecting population and color indicating country. The visualization uses D3 v6 to render an SVG, employing `d3.scaleLinear` for both axes and `d3.scaleSqrt` for bubble radii. Data is loaded from a CSV file via `d3.csv`, which also populates a manual legend. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, and all chart elements—including the title and axis labels—are appended as SVG elements.
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.