Activity 7 tutorial
✓ Published0🌍 Public
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 descriptionMIT Licensed