Skip to main content
100%

Scatterplot of CDC Dataset describing Age (in Years) vs. Weight (in Pounds) for Males and Females

✓ Published1🌍 Public

This scatterplot visualizes the relationship between age (in years) and weight (in pounds) for males and females from a CDC dataset. Points are colored by gender using `scaleOrdinal` with a color legend, and all circles render with 30% opacity to reveal overlapping data. The visualization uses React with D3 v5 scales (`scaleLinear`) to map data to SVG coordinates, with custom axis components for the bottom and left sides. Axes, titles, and labels are added as SVG text elements, while hover tooltips provide precise values via native SVG `<title>` elements.

AI-generated description

This visualization is a scatterplot of age vs. weight distinguised by gender from the CDC Dataset.

Based on the last iteration that I forked (https://vizhub.com/ridhimasaxena/ce31146b95a5497d96ec57e0670ff732), this iteration made the following changes:

  1. Reorganized the code into several files by adding AxisBottom.js, AxisLeft.js, bundle.js, index.js, Marks.js, and useData.js
  2. Added axes titles and a Title to the Graph to the visualization
  3. Added opacity/transparency to the plot
  4. Added color to the scatterplot and a color legend
  5. Introduced react to better construct the plot
MIT Licensed

Similar vizzes