Skip to main content
100%

Task 3 Question

✓ Published0🌍 Public
Ssharanyabobbala@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes