Skip to main content
100%

ICE 7 REUSABLE SCATTER PLOT

✓ Published0🌍 Public
Bbhargavinalamothu@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

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 description
MIT Licensed

Similar vizzes