Activity6_Task3(q1)
✓ Published0🌍 Public
This scatter plot shows the relationship between flipper length and body mass for three penguin species, with each point colored by species and a legend identifying the categories. The visualization uses D3.js v7 to load CSV data from a GitHub repository, apply linear scales for both axes, and render circles via SVG. Axis labels and a custom legend are added using D3’s selection and scale APIs, such as `d3.scaleLinear` and `d3.scaleOrdinal`, while the axes are generated with `d3.axisBottom` and `d3.axisLeft`. The chart filters out rows with missing or zero values before plotting.
AI-generated descriptionMIT Licensed