Skip to main content
100%

Fork of scatterplot

✓ Published1🌍 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
MIT Licensed

Similar vizzes