Responsive Image Slider | Autoplay With Navigation Visibility
This example presents a multi-slide narrative visualization of the World Happiness Report 2021 data, using a responsive image slider with manual navigation buttons. The first slide displays a choropleth world map colored by happiness score using a sequential spectral scale, with an annotation highlighting Northern Europe’s high scores. Subsequent slides show horizontal bar charts of the top ten happiest and least happy countries, rendered with SVG rect marks and band scales. Built with React, D3 v5 (including `scaleSequential`, `geoNaturalEarth1`, and `scaleBand`), and TopoJSON for country boundaries from World Atlas, the data is loaded via D3’s CSV fetcher from a GitHub repository.