🌍 Public
Viewing a saved revision (read-only)
3ada75c803de42f4bb71e372453b217d
Activity6_Task3(q1)
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.