Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of scatterplot

Public visualization

Viewing a saved revision (read-only)

ddb7a0311ec44496a9bbdc317ceae9ec

Fork of scatterplot

0 stars1🌍 Public
Kkshravyak.2001@gmail.com
Last edited Mar 25, 2025
Created on Mar 25, 2025
Forked from scatterplot

This scatterplot visualizes the relationship between sleep duration and age, plotting each data point as a blue circle. It uses d3.csv to load a remote dataset, then applies d3.scaleLinear to map the data to pixel coordinates on an SVG canvas. Axes are generated with d3.axisBottom and d3.axisLeft, and labels for the x-axis, y-axis, and title are added using SVG text elements. The chart fills the entire browser window, with margins defined for the axes and labels.

AI-generated description