Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Plot of BMI vs Age

Public visualization

Viewing a saved revision (read-only)

0a632cd562394b1084bff35acae20c66

Line Plot of BMI vs Age

0 stars0🌍 Public

This visualization displays the relationship between age and weight from the CDC GenlHealth dataset, with each data point represented as a circle on a scatterplot. The axes are scaled linearly using `scaleLinear`, with extents calculated via `d3.extent`. Circles are appended to an SVG canvas using `selectAll` and `.join()`, with left and bottom axes generated through `axisLeft` and `axisBottom` functions. The chart fills the browser window, using the full viewport dimensions for width and height. Data loading is handled asynchronously through the `csv` function with a custom row parser that converts string values to numeric types.

AI-generated description

This visualization is a D3 scatterplot of age vs. weight from the CDC Dataset.