🌍 Public
Viewing a saved revision (read-only)
f0918b4099864cc79e0919f4665c0079
Fork of Hello VizHub
This example visualizes the relationship between life expectancy and the number of physicians per thousand people across countries, with point size reflecting CO2 emissions. It loads CSV data from a GitHub repository and renders an SVG scatterplot using D3 v6’s `d3.csv`, `d3.scaleLinear`, and `d3.axisBottom`/`d3.axisLeft` APIs. Circles are appended via `selectAll` and `join`, with mouse events logging data to the console. The chart demonstrates importing D3 via UNPKG and local module usage in VizHub.
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.