🌍 Public
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.
MIT Licensed
Comments
Sign in to join the discussion.