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)

3f0359a51cb941c8905af2f3c3a81876

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.