Skip to main content
100%

Spiral Graph

✓ Published0🌍 Public
Ssrikkanth05
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes