Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Enter Update

Public visualization

Viewing a saved revision (read-only)

3146715d326246de8215aba09dfb6746

Enter Update

0 stars0🌍 Public
Mmaxthamt
Last edited Aug 10, 2022
Created on Aug 10, 2022
Forked from Interactividad

This example demonstrates animated transitions between data states in a scatter plot, where circles representing countries enter, update, and exit based on incoming data. The visualization shows GDP per capita against life expectancy, with circle size encoding population and color distinguishing South American countries in red. It uses D3.js v7's selection `.enter()`, `.transition()`, and `.exit()` methods to animate 500-millisecond changes, with logarithmic scaling for the x-axis. Data is loaded asynchronously via `d3.json` from a GitHub-hosted ROSLING dataset, rendered as SVG.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.