🌍 Public
Viewing a saved revision (read-only)
87417d830f3e4aff958a480bcaab9fe6
Question4
This bubble chart visualizes the correlation between GDP per capita, life expectancy, and population area ratio across 20 countries, with each bubble’s size encoding population density and color identifying the country. The chart uses d3.csv() to load data from bubblechart.csv and renders circles via d3.scaleLinear for axes and bubble sizing, with a d3.scaleOrdinal and d3.schemeCategory10 for color mapping. Interactive tooltips are implemented with D3 event handlers (mouseover, mousemove, mouseleave) that display country details, while a static legend lists all countries beside color-coded dots.
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.