Spiral Graph
✓ Published0🌍 Public
This interactive example generates a spiral graph comparing population and life expectancy trends for a user-selected country. After entering a country name, the code fetches World Bank CSV data from two GitHub gists using `d3.csv` and `Promise.all`. It renders two smoothed cardinal curves over time, with population in steel blue and life expectancy in orange, using distinct left and right y-axes. The visualization is built with D3 v7 and SVG, demonstrating data loading, merging, and custom chart construction.
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