Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot of CDC Data with Menus

Public visualization

Viewing a saved revision (read-only)

db0c09815b5c4c2b9f6d54cb42e41ac4

Scatter Plot of CDC Data with Menus

0 stars0🌍 Public
RRidhima Saxena
Last edited Dec 5, 2021
Created on Nov 3, 2021

This data visualization displays a scatter plot of U.S. CDC health data, allowing users to explore relationships between variables like age, weight, and exercise. The chart uses two dropdown menus to select which quantitative or categorical columns map to the x- and y-axes, with points updating via d3's transition API. The implementation leverages d3's scaleLinear and scalePoint for axis scaling, and the selection.join method for incremental rendering of circles and axes. The plot renders as SVG with a 1-second animated transition, using the CDC General Health dataset fetched via CSV.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the CDC Dataset.