🌍 Public
Viewing a saved revision (read-only)
f89cf2ffe13a4ea0916d7b25f91cb67e
Task_8_Q3
This scatter plot visualizes the relationship between customer age and family size, with points colored by gender (blue for male, red for female) from the onlinefoods dataset. The D3.js v7 code uses `d3.csv` to load remote data, `d3.scaleLinear` for both axes, and `d3.scaleOrdinal` for gender-based coloring. Circles with 0.7 opacity are positioned via `cx` and `cy` attributes, while `d3.axisBottom` and `d3.axisLeft` generate the axes, and a manual legend with circles and text labels appears in the lower right of the SVG canvas.
AI-generated description