Task 3 Question
✓ Published0🌍 Public
This scatter plot visualizes penguin measurements, plotting flipper length against body mass, with each point colored by species using a categorical color scale. The D3 v6 code loads CSV data from a GitHub gist, converts string values to numbers, and uses `d3.scaleLinear` for both axes. Axis labels are added via `d3.axisBottom` and `d3.axisLeft`, while a legend is constructed manually with colored rectangles and text labels. The SVG rendering approach uses `d3.select` to target the designated container element.
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