Fork of scatterplot
✓ Published1🌍 Public
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 descriptionMIT Licensed