Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7 tutorial

Public visualization

Viewing a saved revision (read-only)

375fad1fbe114ea7ba7fb8daff89d0e1

Activity 7 tutorial

0 stars0🌍 Public
Nnissisharon61@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025

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