Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3.js in action - Section 1 - Ch 1 and 2

Public visualization

Viewing a saved revision (read-only)

90bf7690d7c6400d8c25eeb537b2e225

D3.js in action - Section 1 - Ch 1 and 2

0 stars1🌍 Public
AAlbert
Last edited Mar 26, 2021
Created on Mar 25, 2021
Forked from D3 Starter

This example visualizes Twitter engagement by plotting tweets as circles on an SVG canvas, with x-position determined by tweet time using `d3.scaleTime`, y-position by impact score (favorites plus retweets) via `d3.scaleLinear`, and circle radius and fill color mapped from the same metric with additional scales. It loads data from a local `tweets.json` file using `d3.json`, demonstrates data joins with `enter()` and `exit()` selections to update circles based on filtered data, and uses `d3.group` for data manipulation alongside CSV parsing of `cities.csv` that is fetched but unused.

AI-generated description