Skip to main content
100%

CDC Dataset: Exercise vs. Weight

✓ Published0🌍 Public

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 description

This visualization is a D3 scatterplot of exercise (0 shows no exercise and 1 shows exercise) vs. weight from the CDC Dataset.

MIT Licensed

Similar vizzes