🌍 Public
Viewing a saved revision (read-only)
7f8be5db74be4b4784f2308c24bb7735
Activity8_Question3
This D3.js scatter plot visualizes the HeightsAndWeights dataset, showing the relationship between height and weight for individuals, with points colored by gender (sky-blue for females, red for males). The chart loads data from a remote CSV file using the `d3.csv` API, then scales the x and y axes with `d3.scaleLinear` and renders the plot as SVG. It includes labeled axes for height and weight, and uses the `axisLeft` and `axisBottom` functions to generate ticks. The layout adapts to the window size, and the plot is rendered with circular markers.
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.