ICE 7 REUSABLE SCATTER PLOT
✓ Published0🌍 Public
This scatter plot visualizes the relationship between sleep hours and age for a small sample of individuals. It uses D3.js (v6) with SVG rendering, demonstrating a reusable function that accepts a selector and dataset to generate the chart. The code creates linear scales for both axes, adds labeled axes with tick marks, and renders red circles with white strokes as data points.
AI-generated descriptionMIT Licensed