Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

3c6c97aa357245b8a0415a402a1ac1cd

Fork of Fork of Fork of Reusable D3 Scatter Plot

0 stars0🌍 Public
Bbhargavinalamothu@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This scatter plot shows the relationship between sleep duration and age, with each point representing an individual’s reported hours of sleep plotted against their age. The visualization uses a reusable `scatterPlot` function built with D3 v6, which configures linear scales for both axes, draws circles with a fixed radius, and appends axis labels. Data is loaded asynchronously via `d3.csv` from a remote gist URL, with numeric parsing applied to the `Sleep Duration` and `Age` fields. The SVG fills the entire browser window, and the chart is rendered using standard D3 selections and joins.

AI-generated description