Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task3(q1)

Public visualization

Viewing a saved revision (read-only)

3ada75c803de42f4bb71e372453b217d

Activity6_Task3(q1)

0 stars0🌍 Public
Aaravapalliharika2002@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

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 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.