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