Skip to main content
100%

scatterplot

✓ Published1🌍 Public
Llakshmisurekhamaddukuri@my.unt.edu
Last edited Apr 7, 2025
Created on Apr 7, 2025
Forked from D3 Starter

This scatterplot explores the relationship between sweet food intake and sleep duration, with each point colored by gender. The visualization uses D3.js v7 to load TSV data, apply jitter to reduce overplotting, and render SVG circles with interactive tooltips showing sleep, diet, age, and gender details. A linear scale maps intake frequency on the x-axis against sleep hours on the y-axis, with custom tick labels and axis titles. The code also demonstrates margin conventions, axis generation with `d3.axisBottom` and `d3.axisLeft`, and event handlers for mouse interactions.

AI-generated description
MIT Licensed

Similar vizzes