🌍 Public
Viewing a saved revision (read-only)
f96ff74356ba4e95bf5429c14bd36c0a
Activity 7 tutorial
This example shows a scatter plot of the World Happiness Report 2019 data, with the happiness score on the y-axis and a rotating set of six socioeconomic variables on the x-axis, cycling every five seconds. The visualization uses D3’s `csv`, `scaleLinear`, `axisLeft`, and `axisBottom` to render the SVG chart, updating the axis labels and circles dynamically. It cycles through GDP per capita, social support, healthy life expectancy, freedom, generosity, and corruption perceptions, with Croatia, the U.S., and other countries visible as data points. The animation runs in the browser with a fixed five-second interval.
AI-generated description