Activity6_PersonType
✓ Published0🌍 Public
A scatter plot visualizes the relationship between arm and leg length, colored by person type (old, adult, kid) using orange, steelblue, and green circles. The visualization loads CSV data from GitHub and renders SVG circles via d3.csv, d3.scaleLinear, axisLeft, and axisBottom. The code imports D3 v6 from UNPKG, parses numeric fields, and uses nested selections to bind person-type data to circle elements. The chart adapts to the window size, with axis labels for Height and Weight placed via SVG transforms.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed