CDC Dataset: Exercise vs. Weight
✓ Published0🌍 Public
RRidhima Saxena
Last edited Oct 26, 2021
Created on Oct 16, 2021
This D3.js scatterplot visualizes the relationship between exercise habits and body weight using CDC survey data, with each semi-transparent circle representing an individual. The x-axis maps binary exercise status (0 or 1), while the y-axis shows weight, though random jitter is added to x-coordinates to reveal data density. The visualization uses d3.csv for data loading, d3.scaleLinear for both axes, and d3.axisLeft/axisBottom for tick marks. Circle opacity is set to 0.1, creating darker regions where many overlapping points cluster, and the SVG canvas fills the entire browser window.
AI-generated descriptionThis visualization is a D3 scatterplot of exercise (0 shows no exercise and 1 shows exercise) vs. weight from the CDC Dataset.
MIT Licensed