🌍 Public
Viewing a saved revision (read-only)
2ceead01a8e44e9388238b4c36f842de
Fork of Fork of Fork of Reusable D3 Scatter Plot
This example shows a scatter plot of sleep duration against age, with each circle representing a person’s data point. The visualization uses D3.js v6 to load a CSV dataset, apply linear scales, and render axes with labels. Circles are drawn with an SVG selection join, while the chart is built as a reusable function with configurable properties for width, height, data, margins, and radius. The plot is sized to fill the browser window and updates its dimensions accordingly.
AI-generated description